Skip to content

Commit

Permalink
tests: spawn_test: use BOOST_CHECK_EQUAL() for checking equality of t…
Browse files Browse the repository at this point in the history
…emporary_buffer

so we can have better understanding of failures, if this test fails.

Signed-off-by: Kefu Chai <[email protected]>

Closes scylladb#1327
  • Loading branch information
tchaikov authored and xemul committed Dec 2, 2022
1 parent 80969ef commit 4b6255c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/spawn_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ SEASTAR_TEST_CASE(test_spawn_input) {
}).then([&stdout] {
return stdout.read_exactly(text.size());
}).then([] (temporary_buffer<char> echo) {
BOOST_CHECK(echo == echo.copy_of(text));
BOOST_CHECK_EQUAL(sstring(echo.get(), echo.size()), text);
}).finally([&p] {
return p.wait().discard_result();
});
Expand Down

0 comments on commit 4b6255c

Please sign in to comment.