Keep the Unit test suite free of Promise and Future
[folly.git] / folly / futures / test / PromiseTest.cpp
index 2f3d17a53110a32e56ca45387eb7d1d3ec25b049..126518c0fc54082f3c7b3bab73be931df637b4b8 100644 (file)
@@ -38,6 +38,11 @@ TEST(Promise, getFuture) {
   EXPECT_FALSE(f.isReady());
 }
 
+TEST(Promise, setValueUnit) {
+  Promise<Unit> p;
+  p.setValue();
+}
+
 TEST(Promise, setValue) {
   Promise<int> fund;
   auto ffund = fund.getFuture();