mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-27 03:45:11 +00:00
tests: add thread-in-thread test case
This commit is contained in:
@@ -87,3 +87,14 @@ SEASTAR_TEST_CASE(test_thread_async_immed) {
|
||||
BOOST_REQUIRE_EQUAL(three, 3);
|
||||
});
|
||||
}
|
||||
|
||||
SEASTAR_TEST_CASE(test_thread_async_nested) {
|
||||
return async([] {
|
||||
return async([] {
|
||||
return 3;
|
||||
}).get0();
|
||||
}).then([] (int three) {
|
||||
BOOST_REQUIRE_EQUAL(three, 3);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user