diff --git a/libs/core/futures/tests/regressions/shared_future_continuation_order.cpp b/libs/core/futures/tests/regressions/shared_future_continuation_order.cpp index 1fe2b34c27f6..446d5737f372 100644 --- a/libs/core/futures/tests/regressions/shared_future_continuation_order.cpp +++ b/libs/core/futures/tests/regressions/shared_future_continuation_order.cpp @@ -21,12 +21,12 @@ int hpx_main() hpx::promise p; hpx::shared_future f1 = p.get_future(); - hpx::future f2 = f1.then([](hpx::shared_future&& f) { + hpx::future f2 = f1.then(hpx::launch::sync, [](hpx::shared_future&& f) { HPX_TEST_EQ(f.get(), 42); return ++invocation_count; }); - hpx::future f3 = f1.then([](hpx::shared_future&& f) { + hpx::future f3 = f1.then(hpx::launch::sync, [](hpx::shared_future&& f) { HPX_TEST_EQ(f.get(), 42); return ++invocation_count; });