From b6ee36ab55afe2723a6041ee4b0adfe1830efef3 Mon Sep 17 00:00:00 2001 From: Nicholas Ormrod Date: Mon, 22 Sep 2014 11:20:47 -0700 Subject: [PATCH] Increase wangle test timers Summary: When running all folly tests at once, as with fbconfig -r folly && fbmake runtests the wangle tests sometimes fail. Enough tests are running that the 1-millisecond timer is too small, and is sometimes missed. Bumping it to 10 milliseconds. Test Plan: fbconfig -r folly && fbmake runtests Reviewed By: hans@fb.com Subscribers: sdwilsh, fugalh, njormrod FB internal diff: D1568124 Tasks: 5180879 --- folly/wangle/test/FutureTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/wangle/test/FutureTest.cpp b/folly/wangle/test/FutureTest.cpp index 4f85c139..1bf27533 100644 --- a/folly/wangle/test/FutureTest.cpp +++ b/folly/wangle/test/FutureTest.cpp @@ -734,7 +734,7 @@ TEST(Future, waitWithSemaphoreForTime) { auto t = waitWithSemaphore(std::move(f), std::chrono::milliseconds(1)); auto end = std::chrono::system_clock::now(); - EXPECT_TRUE( end - begin < std::chrono::milliseconds(2)); + EXPECT_TRUE( end - begin < std::chrono::milliseconds(5)); EXPECT_FALSE(t.isReady()); } { -- 2.34.1