Commit d3676acb authored by Xiaofei Du's avatar Xiaofei Du Committed by Facebook Github Bot

Delete Coro.Throw test

Summary: Coro.Throw and Coro.FutureThrow are exactly the same. Delete one

Reviewed By: lewissbaker

Differential Revision: D18337140

fbshipit-source-id: 9cf479b3e33599b3c8c982cabc87d1227d4efb9b
parent b6641eb7
......@@ -175,18 +175,6 @@ coro::Task<int> taskException() {
co_return 42;
}
TEST(Coro, Throw) {
ManualExecutor executor;
auto future = taskException().scheduleOn(&executor).start();
EXPECT_FALSE(future.isReady());
executor.drive();
EXPECT_TRUE(future.isReady());
EXPECT_THROW(std::move(future).get(), std::runtime_error);
}
TEST(Coro, FutureThrow) {
ManualExecutor executor;
auto future = taskException().scheduleOn(&executor).start();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment