Commit b6ee36ab authored by Nicholas Ormrod's avatar Nicholas Ormrod Committed by Anton Likhtarov

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
parent 8c62ae77
...@@ -734,7 +734,7 @@ TEST(Future, waitWithSemaphoreForTime) { ...@@ -734,7 +734,7 @@ TEST(Future, waitWithSemaphoreForTime) {
auto t = waitWithSemaphore(std::move(f), auto t = waitWithSemaphore(std::move(f),
std::chrono::milliseconds(1)); std::chrono::milliseconds(1));
auto end = std::chrono::system_clock::now(); 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()); EXPECT_FALSE(t.isReady());
} }
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment