Author: ioeric Date: Tue Dec 18 08:06:29 2018 New Revision: 349502 URL: http://llvm.org/viewvc/llvm-project?rev=349502&view=rev Log: [clangd] Try to fix buildbot failure after r349496
Increase timeout from 10ms to 100ms. See http://lab.llvm.org:8011/builders/clang-ppc64be-linux/builds/27959 Modified: clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp Modified: clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp?rev=349502&r1=349501&r2=349502&view=diff ============================================================================== --- clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp (original) +++ clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp Tue Dec 18 08:06:29 2018 @@ -251,7 +251,7 @@ TEST_F(BackgroundIndexTest, PeriodicalIn OverlayCDB CDB(/*Base=*/nullptr); BackgroundIndex Idx( Context::empty(), "", FS, CDB, [&](llvm::StringRef) { return &MSS; }, - /*BuildIndexPeriodMs=*/10); + /*BuildIndexPeriodMs=*/100); FS.Files[testPath("root/A.cc")] = "#include \"A.h\""; @@ -263,7 +263,7 @@ TEST_F(BackgroundIndexTest, PeriodicalIn ASSERT_TRUE(Idx.blockUntilIdleForTest()); EXPECT_THAT(runFuzzyFind(Idx, ""), ElementsAre()); - std::this_thread::sleep_for(std::chrono::milliseconds(15)); + std::this_thread::sleep_for(std::chrono::milliseconds(150)); EXPECT_THAT(runFuzzyFind(Idx, ""), ElementsAre(Named("X"))); FS.Files[testPath("root/A.h")] = "class Y {};"; @@ -273,7 +273,7 @@ TEST_F(BackgroundIndexTest, PeriodicalIn ASSERT_TRUE(Idx.blockUntilIdleForTest()); EXPECT_THAT(runFuzzyFind(Idx, ""), ElementsAre(Named("X"))); - std::this_thread::sleep_for(std::chrono::milliseconds(15)); + std::this_thread::sleep_for(std::chrono::milliseconds(150)); EXPECT_THAT(runFuzzyFind(Idx, ""), ElementsAre(Named("Y"))); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits