Commit f20cc52f authored by Lee Howes's avatar Lee Howes Committed by Facebook Github Bot

Increase timeout to a length that is unlikely to trigger

Summary: one_ms is short enough that it can trigger under testing. Increase to make less likely to fail spuriously.

Reviewed By: yfeldblum

Differential Revision: D17190402

fbshipit-source-id: 091cd3ee8f3da224e39ba95c403e233115a80510
parent 63d655cf
......@@ -446,7 +446,10 @@ TEST(Timekeeper, executor) {
Promise<Unit> p;
ExecutorTester tester;
auto f = p.getFuture().via(&tester).within(one_ms).thenValue([&](auto&&) {});
auto f = p.getFuture()
.via(&tester)
.within(milliseconds(100))
.thenValue([&](auto&&) {});
p.setValue();
f.wait();
EXPECT_EQ(2, tester.count);
......
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