Increase wangle test timers
authorNicholas Ormrod <njormrod@fb.com>
Mon, 22 Sep 2014 18:20:47 +0000 (11:20 -0700)
committerAnton Likhtarov <alikhtarov@fb.com>
Fri, 26 Sep 2014 22:20:07 +0000 (15:20 -0700)
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

index 4f85c139d06fb186ea38800e14479af8088a1fdd..1bf275337cd97ae936e5fb8787864658bc271326 100644 (file)
@@ -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());
  }
  {