diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2018-12-20 16:27:19 +0000 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2018-12-20 16:27:19 +0000 |
commit | d363f0842627cba6bbd0f719bfa3894c4ffcbf96 (patch) | |
tree | b366d52724eb0722399860a63aa656293bd26245 | |
parent | b618849e3160d630f94596fba435fe016ac4a507 (diff) | |
download | bcm5719-llvm-d363f0842627cba6bbd0f719bfa3894c4ffcbf96.tar.gz bcm5719-llvm-d363f0842627cba6bbd0f719bfa3894c4ffcbf96.zip |
[clangd] Try to workaround test failure by increasing the timeouts
Ideally we'd figure out a way to run this test without any sleeps, this
workaround is only there to avoid annoying people with test failures
around the holiday period when everyone is on vacation.
llvm-svn: 349769
-rw-r--r-- | clang-tools-extra/unittests/clangd/BackgroundIndexTests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/unittests/clangd/BackgroundIndexTests.cpp b/clang-tools-extra/unittests/clangd/BackgroundIndexTests.cpp index 377e5014b38..3359a727be8 100644 --- a/clang-tools-extra/unittests/clangd/BackgroundIndexTests.cpp +++ b/clang-tools-extra/unittests/clangd/BackgroundIndexTests.cpp @@ -251,7 +251,7 @@ TEST_F(BackgroundIndexTest, PeriodicalIndex) { OverlayCDB CDB(/*Base=*/nullptr); BackgroundIndex Idx( Context::empty(), "", FS, CDB, [&](llvm::StringRef) { return &MSS; }, - /*BuildIndexPeriodMs=*/100); + /*BuildIndexPeriodMs=*/500); FS.Files[testPath("root/A.cc")] = "#include \"A.h\""; @@ -263,7 +263,7 @@ TEST_F(BackgroundIndexTest, PeriodicalIndex) { ASSERT_TRUE(Idx.blockUntilIdleForTest()); EXPECT_THAT(runFuzzyFind(Idx, ""), ElementsAre()); - std::this_thread::sleep_for(std::chrono::milliseconds(150)); + std::this_thread::sleep_for(std::chrono::milliseconds(1000)); EXPECT_THAT(runFuzzyFind(Idx, ""), ElementsAre(Named("X"))); FS.Files[testPath("root/A.h")] = "class Y {};"; @@ -273,7 +273,7 @@ TEST_F(BackgroundIndexTest, PeriodicalIndex) { ASSERT_TRUE(Idx.blockUntilIdleForTest()); EXPECT_THAT(runFuzzyFind(Idx, ""), ElementsAre(Named("X"))); - std::this_thread::sleep_for(std::chrono::milliseconds(150)); + std::this_thread::sleep_for(std::chrono::milliseconds(1000)); EXPECT_THAT(runFuzzyFind(Idx, ""), ElementsAre(Named("Y"))); } |