Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Dec 3, 2022
1 parent bf1246f commit 4799781
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/spawn_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ SEASTAR_TEST_CASE(test_spawn_input) {
auto stdout = process.stdout();
return do_with(std::move(process), std::move(stdin), std::move(stdout), [](auto& p, auto& stdin, auto& stdout) {
return stdin.write(text).then([&stdin] {
seastar_logger.error("flush..");
return stdin.flush();
}).then([&stdout] {
seastar_logger.error("read_exactly..");
return stdout.read_exactly(text.size());
}).then([] (temporary_buffer<char> echo) {
BOOST_CHECK_EQUAL(sstring(echo.get(), echo.size()), text);
Expand Down

0 comments on commit 4799781

Please sign in to comment.