Commit af581fbe authored by James Sedgwick's avatar James Sedgwick Committed by JoelMarcey

stabilize IOFuturePool test

Summary: see attached task. concurrency is hard.

Test Plan: stress ran the hell out of it, induced failures before, can't after

Reviewed By: hans@fb.com

Subscribers: fugalh, folly-diffs@

FB internal diff: D1746879

Tasks: 5589311

Signature: t1:1746879:1418860467:0ec3f51a398eee8a836532770682a4c58758ce93
parent 4ef6b6d4
......@@ -242,7 +242,7 @@ TEST(ThreadPoolExecutorTest, IOExpiration) {
template <typename TPE>
static void futureExecutor() {
FutureExecutor<TPE> fe(2);
int c = 0;
std::atomic<int> c{0};
fe.addFuture([] () { return makeFuture<int>(42); }).then(
[&] (Try<int>&& t) {
c++;
......
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