diff --git a/tests/thread_test.cc b/tests/thread_test.cc index 59b0fcc203..79b877f731 100644 --- a/tests/thread_test.cc +++ b/tests/thread_test.cc @@ -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); + }); +} +