| 626 | TestDoExchangeGet(); |
| 627 | } |
| 628 | void DataTest::TestIssue5095() { |
| 629 | // Make sure the server-side error message is reflected to the |
| 630 | // client |
| 631 | Ticket ticket1{"ARROW-5095-fail"}; |
| 632 | Status status = client_->DoGet(ticket1).status(); |
| 633 | ASSERT_RAISES(UnknownError, status); |
| 634 | ASSERT_THAT(status.message(), ::testing::HasSubstr("Server-side error")); |
| 635 | |
| 636 | Ticket ticket2{"ARROW-5095-success"}; |
| 637 | status = client_->DoGet(ticket2).status(); |
| 638 | ASSERT_RAISES(KeyError, status); |
| 639 | ASSERT_THAT(status.message(), ::testing::HasSubstr("No data")); |
| 640 | } |
| 641 | |
| 642 | //------------------------------------------------------------ |
| 643 | // Specific tests for DoPut |