From: Nicholas Ormrod Date: Mon, 22 Sep 2014 18:20:47 +0000 (-0700) Subject: Increase wangle test timers X-Git-Tag: v0.22.0~343 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b6ee36ab55afe2723a6041ee4b0adfe1830efef3;p=folly.git 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 --- 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()); } {