| 971 | }; |
| 972 | |
| 973 | TEST_F(TestErrorMiddleware, TestMetadata) { |
| 974 | Action action; |
| 975 | |
| 976 | // Run action1 |
| 977 | action.type = "action1"; |
| 978 | |
| 979 | action.body = Buffer::FromString("action1-content"); |
| 980 | ASSERT_OK_AND_ASSIGN(auto stream, client_->DoAction(action)); |
| 981 | Status s = stream->Next().status(); |
| 982 | ASSERT_FALSE(s.ok()); |
| 983 | std::shared_ptr<FlightStatusDetail> flightStatusDetail = |
| 984 | FlightStatusDetail::UnwrapStatus(s); |
| 985 | ASSERT_TRUE(flightStatusDetail); |
| 986 | ASSERT_EQ(flightStatusDetail->extra_info(), "error_message"); |
| 987 | } |
| 988 | |
| 989 | TEST_F(TestFlightClient, ListFlights) { |
| 990 | ASSERT_OK_AND_ASSIGN(auto listing, client_->ListFlights()); |
nothing calls this directly
no test coverage detected