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

Method TestShutdownWithDeadline

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

Source from the content-addressed store, hash-verified

93 }
94}
95void ConnectivityTest::TestShutdownWithDeadline() {
96 std::unique_ptr<FlightServerBase> server = TestFlightServer::Make();
97
98 ASSERT_OK_AND_ASSIGN(auto location, Location::ForScheme(transport(), "127.0.0.1", 0));
99 FlightServerOptions options(location);
100 ASSERT_OK(server->Init(options));
101 ASSERT_GT(server->port(), 0);
102
103 auto deadline = std::chrono::system_clock::now() + std::chrono::microseconds(10);
104
105 ASSERT_OK(server->Shutdown(&deadline));
106 ASSERT_OK(server->Wait());
107}
108void ConnectivityTest::TestBrokenConnection() {
109 std::unique_ptr<FlightServerBase> server = TestFlightServer::Make();
110 ASSERT_OK_AND_ASSIGN(auto location, Location::ForScheme(transport(), "127.0.0.1", 0));

Callers

nothing calls this directly

Calls 5

MakeFunction · 0.50
InitMethod · 0.45
portMethod · 0.45
ShutdownMethod · 0.45
WaitMethod · 0.45

Tested by

no test coverage detected