projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Keep the Unit test suite free of Promise and Future
[folly.git]
/
folly
/
futures
/
test
/
PromiseTest.cpp
diff --git
a/folly/futures/test/PromiseTest.cpp
b/folly/futures/test/PromiseTest.cpp
index 2f3d17a53110a32e56ca45387eb7d1d3ec25b049..126518c0fc54082f3c7b3bab73be931df637b4b8 100644
(file)
--- 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<Unit> p;
+ p.setValue();
+}
+
TEST(Promise, setValue) {
Promise<int> fund;
auto ffund = fund.getFuture();