fix future_test

This commit is contained in:
tqcq 2024-04-30 09:41:12 +08:00
parent de53f16699
commit 6eedad6eee

View File

@ -126,7 +126,7 @@ TEST_SUITE("future")
return 1;
});
f2.Wait();
CHECK_FALSE(f2.IsFailed());
CHECK(f2.IsFailed());
CHECK_EQ(std::string("test"), f2.FailureReason().what());
CHECK(f2.IsFailed());