[clang] f84c77f - Revert "Raise the timeout in DirectoryWatcherTest to 10 s"

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 13 06:21:32 PDT 2020


Author: Hans Wennborg
Date: 2020-10-13T15:21:06+02:00
New Revision: f84c77f424e15316f7f46f484880162a7cbcd80b

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

LOG: Revert "Raise the timeout in DirectoryWatcherTest to 10 s"

It didn't help.

This reverts commit bddef54c502811fa1406d1161d4baa15b56ebc32.

Added: 
    

Modified: 
    clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp b/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
index 4d4a4614740d..650c0fc49764 100644
--- a/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
+++ b/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
@@ -243,7 +243,7 @@ void checkEventualResultWithTimeout(VerifyingConsumer &TestConsumer) {
   std::thread worker(std::move(task));
   worker.detach();
 
-  EXPECT_TRUE(WaitForExpectedStateResult.wait_for(std::chrono::seconds(10)) ==
+  EXPECT_TRUE(WaitForExpectedStateResult.wait_for(std::chrono::seconds(3)) ==
               std::future_status::ready)
       << "The expected result state wasn't reached before the time-out.";
   std::unique_lock<std::mutex> L(TestConsumer.Mtx);


        


More information about the cfe-commits mailing list