forked from OSchip/llvm-project
[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
This commit is contained in:
parent
b618849e31
commit
d363f08426
|
@ -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")));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue