(wangle) remove Future::wait
[folly.git] / folly / wangle / test / FutureTest.cpp
index cdc8f82d7b659265875dcd22967e5eb82c3782d3..24a318f2357aabd0c284d15982de085ea057064a 100644 (file)
@@ -500,21 +500,6 @@ TEST(when, small_vector) {
   }
 }
 
-TEST(Future, wait) {
-  Promise<void> p;
-  auto f = p.getFuture();
-  auto t = std::thread([&] {
-    std::this_thread::sleep_for(std::chrono::microseconds(10));
-    p.setValue();
-  });
-
-  f.wait();
-
-  EXPECT_TRUE(f.isReady());
-
-  t.join();
-}
-
 TEST(Future, whenAllVariadic) {
   Promise<bool> pb;
   Promise<int> pi;