From e5bd62a738cbc1896ac5b41878fe73883215a158 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Mon, 29 Apr 2024 20:53:04 +0800 Subject: [PATCH] fix future_test --- src/sled/futures/future_test.cc | 1 + 1 file changed, 1 insertion(+) 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());