Future<Unit> wangle fixup
[folly.git] / folly / wangle / concurrent / test / ThreadPoolExecutorTest.cpp
index 59c28c01c42d547e318ba599e41871fdfcb68178..c12834d7584799484608c882b5bb68f0570f0ad3 100644 (file)
@@ -255,17 +255,17 @@ static void futureExecutor() {
       EXPECT_EQ(100, t.value());
     });
   fe.addFuture([] () { return makeFuture(); }).then(
-    [&] (Try<void>&& t) {
+    [&] (Try<Unit>&& t) {
       c++;
       EXPECT_NO_THROW(t.value());
     });
   fe.addFuture([] () { return; }).then(
-    [&] (Try<void>&& t) {
+    [&] (Try<Unit>&& t) {
       c++;
       EXPECT_NO_THROW(t.value());
     });
   fe.addFuture([] () { throw std::runtime_error("oops"); }).then(
-    [&] (Try<void>&& t) {
+    [&] (Try<Unit>&& t) {
       c++;
       EXPECT_THROW(t.value(), std::runtime_error);
     });