X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Ffutures%2Ftest%2FPromiseTest.cpp;h=126518c0fc54082f3c7b3bab73be931df637b4b8;hb=723206127f727c66ec685038fdcaf72a9353e707;hp=2f3d17a53110a32e56ca45387eb7d1d3ec25b049;hpb=e38ff539d4559d94c35e5f7a84f520d294566acc;p=folly.git diff --git a/folly/futures/test/PromiseTest.cpp b/folly/futures/test/PromiseTest.cpp index 2f3d17a5..126518c0 100644 --- a/folly/futures/test/PromiseTest.cpp +++ b/folly/futures/test/PromiseTest.cpp @@ -38,6 +38,11 @@ TEST(Promise, getFuture) { EXPECT_FALSE(f.isReady()); } +TEST(Promise, setValueUnit) { + Promise p; + p.setValue(); +} + TEST(Promise, setValue) { Promise fund; auto ffund = fund.getFuture();