summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra
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
commita44eb93a4bac6128791c99f23166e8e2fa629f17 (patch)
treecdc99a9dfb9c44cb7bead028de249843ef1994b2 /clang-tools-extra
parentfee1040f04e7a4ef59aa61f29d3fe7cc1a4724a0 (diff)
downloadbcm5719-llvm-a44eb93a4bac6128791c99f23166e8e2fa629f17.tar.gz
bcm5719-llvm-a44eb93a4bac6128791c99f23166e8e2fa629f17.zip
[clangd] Update the test code
I forgot to update it in the last round of code review. llvm-svn: 348478
Diffstat (limited to 'clang-tools-extra')
-rw-r--r--clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp b/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp
index f7ddd363934..4b84284b070 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<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;
OpenPOWER on IntegriCloud