diff --git a/src/sled/futures/future_test.cc b/src/sled/futures/future_test.cc index 41d9880..3dea345 100644 --- a/src/sled/futures/future_test.cc +++ b/src/sled/futures/future_test.cc @@ -125,6 +125,7 @@ TEST_SUITE("future") throw std::runtime_error("test"); return 1; }); + f2.Wait(); CHECK_FALSE(f2.IsFailed()); CHECK_EQ(std::string("test"), f2.FailureReason().what()); CHECK(f2.IsFailed());