X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Ffutures%2Ftest%2FViaTest.cpp;h=79e6c9bf9847d5a3a9a6e82c7697cb6e20d75955;hp=1a530d37706aa2f651751cc9ed1c9833131a519e;hb=7ebe7c2a249de44209e8bcc453e1a70bafd4ed19;hpb=bfa61031d36f41aaa907d40371c28ac0e84c8e0d diff --git a/folly/futures/test/ViaTest.cpp b/folly/futures/test/ViaTest.cpp index 1a530d37..79e6c9bf 100644 --- a/folly/futures/test/ViaTest.cpp +++ b/folly/futures/test/ViaTest.cpp @@ -50,8 +50,9 @@ struct ViaFixture : public testing::Test { { t = std::thread([=] { ManualWaiter eastWaiter(eastExecutor); - while (!done) + while (!done) { eastWaiter.drive(); + } }); } @@ -466,7 +467,9 @@ TEST(Via, viaRaces) { p.setValue(); }); - while (!done) x.run(); + while (!done) { + x.run(); + } t1.join(); t2.join(); }