Add SemiFuture class.
[folly.git] / folly / futures / test / ExecutorTest.cpp
index d4b24e0974cf567cb838d9620494ce3efac2232c..6751487206cc36606bdff2f02ab90e550aaea4eb 100644 (file)
@@ -232,9 +232,12 @@ TEST(Executor, RunnablePtr) {
 
 TEST(Executor, ThrowableThen) {
   InlineExecutor x;
+  auto f = Future<Unit>().then([]() { throw std::runtime_error("Faildog"); });
+
+  /*
   auto f = Future<Unit>().via(&x).then([](){
     throw std::runtime_error("Faildog");
-  });
+  });*/
   EXPECT_THROW(f.value(), std::exception);
 }