diff options
-rw-r--r-- | clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp b/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp index e7c7e450db8..e21788ee444 100644 --- a/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp +++ b/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp @@ -221,6 +221,7 @@ TEST_F(TUSchedulerTests, Cancellation) { // R3 <-- cancelled std::vector<std::string> DiagsSeen, ReadsSeen, ReadsCanceled; { + Notification Proceed; // Ensure we schedule everything. TUScheduler S( getDefaultAsyncThreadsCount(), /*StorePreamblesInMemory=*/true, /*ASTCallbacks=*/nullptr, @@ -255,7 +256,6 @@ TEST_F(TUSchedulerTests, Cancellation) { return std::move(T.second); }; - Notification Proceed; // Ensure we schedule everything. S.update(Path, getInputs(Path, ""), WantDiagnostics::Yes, [&](std::vector<Diag> Diags) { Proceed.wait(); }); // The second parens indicate cancellation, where present. |