Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
increased the wait-time on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
weigon committed Jun 15, 2018
1 parent 7f23800 commit 5b2b7c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/component/test_master_key_reader_writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,9 @@ TEST_F(MasterKeyReaderWriterTest, ConnectToMetadataServerPass) {
// launch the router with metadata-cache configuration
auto router = RouterComponentTest::launch_router(
"-c " + create_config_file("[logger]\nlevel = DEBUG\n"+ metadata_cache_section + routing_section, &default_section_map));
bool router_ready = wait_for_port_ready(router_port, 3000);

EXPECT_TRUE(router_ready) << router.get_full_output();
// in windows waiting for the router's keyring reader takes about 2seconds, and we need to do 3 rounds
EXPECT_TRUE(wait_for_port_ready(router_port, 10000)) << router.get_full_output();

auto matcher = [&](const std::string& line) -> bool {
return line.find("Connected with metadata server running on") != line.npos;
Expand Down Expand Up @@ -560,9 +560,9 @@ TEST_F(MasterKeyReaderWriterTest, NoMasterKeyInLogsWhenConnectToMetadataServerPa
// launch the router with metadata-cache configuration
auto router = RouterComponentTest::launch_router(
"-c " + create_config_file("[logger]\nlevel = DEBUG\n"+ metadata_cache_section + routing_section, &default_section_map));
bool router_ready = wait_for_port_ready(router_port, 3000);

EXPECT_TRUE(router_ready) << router.get_full_output();
// in windows waiting for the router's keyring reader takes about 2seconds, and we need to do 3 rounds
EXPECT_TRUE(wait_for_port_ready(router_port, 10000)) << router.get_full_output();

auto matcher = [&, this](const std::string& line) -> bool {
return line.find(master_key_) != line.npos;
Expand Down

0 comments on commit 5b2b7c7

Please sign in to comment.