Fix flight tests to use a valid port number

This commit is contained in:
David Li authored and Wes McKinney committed 2019-01-19 19:23:38 -06:00
1 parent bdf0bc5698
commit 8bb701803f
1 file changed
+3 -3
+3 -3
View File
@@ -53,11 +53,11 @@ namespace arrow {
namespace flight {
TEST(TestFlight, StartStopTestServer) {
TestServer server("flight-test-server", 92385);
TestServer server("flight-test-server", 30000);
server.Start();
ASSERT_TRUE(server.IsRunning());
sleep_for(0.2);
std::this_thread::sleep_for(std::chrono::duration<double>(0.2));
ASSERT_TRUE(server.IsRunning());
int exit_code = server.Stop();
@@ -79,7 +79,7 @@ class TestFlightClient : public ::testing::Test {
// void TearDown() {}
void SetUp() {
port_ = 92358;
port_ = 30000;
server_.reset(new TestServer("flight-test-server", port_));
server_->Start();
ASSERT_OK(ConnectClient());