summaryrefslogtreecommitdiff
path: root/src/mongo/util/future_test_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/future_test_utils.h')
-rw-r--r--src/mongo/util/future_test_utils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/util/future_test_utils.h b/src/mongo/util/future_test_utils.h
index 32aa149a088..374f00f7a7f 100644
--- a/src/mongo/util/future_test_utils.h
+++ b/src/mongo/util/future_test_utils.h
@@ -149,7 +149,7 @@ void FUTURE_SUCCESS_TEST(const CompletionFunc& completion, const TestFunc& test)
}
if constexpr (doExecutorFuture) { // immediate executor future
- auto exec = InlineCountingExecutor::make();
+ auto exec = InlineQueuedCountingExecutor::make();
test(Future<CompletionType>::makeReady(completion()).thenRunOn(exec));
}
}
@@ -178,7 +178,7 @@ void FUTURE_SUCCESS_TEST(const CompletionFunc& completion, const TestFunc& test)
if constexpr (doExecutorFuture) { // immediate executor future
completion();
- auto exec = InlineCountingExecutor::make();
+ auto exec = InlineQueuedCountingExecutor::make();
test(Future<CompletionType>::makeReady().thenRunOn(exec));
}
}
@@ -203,7 +203,7 @@ void FUTURE_FAIL_TEST(const TestFunc& test) {
}));
}
if constexpr (doExecutorFuture) { // immediate executor future
- auto exec = InlineCountingExecutor::make();
+ auto exec = InlineQueuedCountingExecutor::make();
test(Future<CompletionType>::makeReady(failStatus()).thenRunOn(exec));
}
}