Revert "Raise the timeout in DirectoryWatcherTest to 10 s"
authorHans Wennborg <hans@chromium.org>
Tue, 13 Oct 2020 13:21:06 +0000 (15:21 +0200)
committerHans Wennborg <hans@chromium.org>
Tue, 13 Oct 2020 13:21:06 +0000 (15:21 +0200)
It didn't help.

This reverts commit bddef54c502811fa1406d1161d4baa15b56ebc32.

clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp

index 4d4a461..650c0fc 100644 (file)
@@ -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);