diff --git a/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp b/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp index f7ddd363934b..4b84284b070b 100644 --- a/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp +++ b/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp @@ -716,11 +716,7 @@ TEST_F(TUSchedulerTests, NoTUStatusEmittedForRemovedFile) { std::vector Diagnostics) override {} void onFileUpdated(PathRef File, const TUStatus &Status) override { - // Queued is emitted by the main thread, we don't block it. - if (Status.Action.S == TUAction::Queued) - return; // Block the worker thread until the document is removed. - ASSERT_TRUE(Status.Action.S == TUAction::RunningAction); Removed.wait(); } Notification Removed;