MCPcopy Create free account
hub / github.com/apache/arrow / TestIssue5095

Method TestIssue5095

cpp/src/arrow/flight/test_definitions.cc:628–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626 TestDoExchangeGet();
627}
628void 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

Callers

nothing calls this directly

Calls 2

statusMethod · 0.45
DoGetMethod · 0.45

Tested by

no test coverage detected