[clang-tools-extra] 552b59b - [clangd] Bump timeout for a flaky test

Kadir Cetinkaya via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 23 09:23:44 PDT 2022


Author: Kadir Cetinkaya
Date: 2022-08-23T18:18:17+02:00
New Revision: 552b59b9e69fe1cb2b1ee0cb49cf8376a3dc0869

URL: https://github.com/llvm/llvm-project/commit/552b59b9e69fe1cb2b1ee0cb49cf8376a3dc0869
DIFF: https://github.com/llvm/llvm-project/commit/552b59b9e69fe1cb2b1ee0cb49cf8376a3dc0869.diff

LOG: [clangd] Bump timeout for a flaky test

This has been failing on some build bots with timeout, increasing it to
5 seconds.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp b/clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp
index fd56b0d75ae20..4e95fcfea91c1 100644
--- a/clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp
+++ b/clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp
@@ -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,


        


More information about the cfe-commits mailing list