[clangd] Bump timeout for a flaky test
authorKadir Cetinkaya <kadircet@google.com>
Tue, 23 Aug 2022 16:17:44 +0000 (18:17 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Tue, 23 Aug 2022 16:18:17 +0000 (18:18 +0200)
This has been failing on some build bots with timeout, increasing it to
5 seconds.

clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp

index fd56b0d..4e95fcf 100644 (file)
@@ -264,7 +264,7 @@ TEST_F(TUSchedulerTests, Debounce) {
   Notification N;
   updateWithDiags(S, Path, "auto (timed out)", WantDiagnostics::Auto,
                   [&](std::vector<Diag>) { N.notify(); });
-  EXPECT_TRUE(N.wait(timeoutSeconds(1)));
+  EXPECT_TRUE(N.wait(timeoutSeconds(5)));
 
   // Once we start shutting down the TUScheduler, this one becomes a dead write.
   updateWithDiags(S, Path, "auto (discarded)", WantDiagnostics::Auto,