aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2018-12-06 10:22:48 +0000
committerHaojian Wu <hokein@google.com>2018-12-06 10:22:48 +0000
commitaa284900ed42c48fec9fcc47a8cf04b37f0edef1 (patch)
tree485d60ff85cdd08298547dd0f7f6852479f7da24
parent87792d017cef54e375abb56bc04c89303e01275c (diff)
[clangd] Update the test code
I forgot to update it in the last round of code review. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@348478 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--unittests/clangd/TUSchedulerTests.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/unittests/clangd/TUSchedulerTests.cpp b/unittests/clangd/TUSchedulerTests.cpp
index f7ddd363..4b84284b 100644
--- a/unittests/clangd/TUSchedulerTests.cpp
+++ b/unittests/clangd/TUSchedulerTests.cpp
@@ -716,11 +716,7 @@ TEST_F(TUSchedulerTests, NoTUStatusEmittedForRemovedFile) {
std::vector<Diag> 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;