mirror of
https://github.com/apache/arrow.git
synced 2026-10-28 16:47:19 +08:00
Fix flight tests to use a valid port number
This commit is contained in:
1 parent
bdf0bc5698
commit
8bb701803f
1 file changed
+3
-3
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user