Add getSemiFuture to folly::Promise
[folly.git] / folly / futures / test / FSMTest.cpp
index 1178603f3f86ef0cb508bde9d9a99d2f42cad5b5..0217eda5f622c2300f9da4257a095f7dd6617f2e 100644 (file)
@@ -39,12 +39,16 @@ TEST(FSM, example) {
   };
 
   // keep retrying until success (like a cas)
-  while (!tryTransition()) ;
+  while (!tryTransition()) {
+    ;
+  }
   EXPECT_EQ(State::B, fsm.getState());
   EXPECT_EQ(1, count);
   EXPECT_EQ(0, unprotectedCount);
 
-  while (!tryTransition()) ;
+  while (!tryTransition()) {
+    ;
+  }
   EXPECT_EQ(State::A, fsm.getState());
   EXPECT_EQ(0, count);
   EXPECT_EQ(-1, unprotectedCount);