Skip to content

Commit 1574994

Browse files
committed
test/crimson/os/seastore: fix runtime error in rbm
This commit is added to fix the following error. "void seastar::internal::future_base::do_wait(): Assertion thread failed." Signed-off-by: Myoungwon Oh <[email protected]>
1 parent 1e441f2 commit 1574994

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/test/crimson/seastore/test_randomblock_manager.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ struct rbm_test_t :
6767
}
6868

6969
seastar::future<> tear_down_fut() final {
70-
rbm_manager->close().unsafe_get();
71-
device->close().unsafe_get();
70+
co_await rbm_manager->close().handle_error(
71+
crimson::ct_error::assert_all{});
72+
co_await device->close().handle_error(
73+
crimson::ct_error::assert_all{});
7274
rbm_manager.reset();
7375
device.reset();
74-
return seastar::now();
76+
co_return;
7577
}
7678

7779
auto mkfs() {

0 commit comments

Comments
 (0)