stdexec: pass scheduler to default_task_context
The latest version of stdexec[1] does not allow a default constructed
`default_task_context` but requires a scheduler to be passed in. The
previous default was to use an `inline_scheduler` so explicitly pass
that in.
[1]: https://github.com/openbmc/sdbusplus/commit/5cee91570368554a7fcbbd9418f65efda449fa70
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ib210b42ba5272e0176cd4423b156ca6372115a55
diff --git a/requester/test/handler_test.cpp b/requester/test/handler_test.cpp
index 19afdd1..f37040f 100644
--- a/requester/test/handler_test.cpp
+++ b/requester/test/handler_test.cpp
@@ -188,7 +188,7 @@
EXPECT_EQ(validResponse, true);
}),
- exec::default_task_context<void>());
+ exec::default_task_context<void>(exec::inline_scheduler{}));
pldm::Response mockResponse(sizeof(pldm_msg_hdr) + sizeof(uint8_t), 0);
auto mockResponsePtr =
@@ -221,7 +221,7 @@
EXPECT_TRUE(false); // unreachable
}) | stdexec::upon_stopped([&] { stopped = true; }),
- exec::default_task_context<void>());
+ exec::default_task_context<void>(exec::inline_scheduler{}));
scope.request_stop();
@@ -274,7 +274,7 @@
EXPECT_EQ(expectedTid, respTid);
}),
- exec::default_task_context<void>());
+ exec::default_task_context<void>(exec::inline_scheduler{}));
pldm::Response mockResponse(sizeof(pldm_msg_hdr) + PLDM_GET_TID_RESP_BYTES,
0);