From c5623fdabbb384a4315815ebb187f097f03e2549 Mon Sep 17 00:00:00 2001 From: gladcow Date: Thu, 29 Aug 2019 14:03:38 +0300 Subject: [PATCH] increase delay for node connection --- tests/app/main.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/app/main.cpp b/tests/app/main.cpp index 8b0a744b..5279440e 100644 --- a/tests/app/main.cpp +++ b/tests/app/main.cpp @@ -74,13 +74,12 @@ BOOST_AUTO_TEST_CASE( two_node_network ) cfg.emplace("genesis-json", boost::program_options::variable_value(create_genesis_file(app_dir), false)); cfg2.emplace("genesis-json", boost::program_options::variable_value(create_genesis_file(app2_dir), false)); - - BOOST_TEST_MESSAGE( "Starting app1 and waiting 500 ms" ); + BOOST_TEST_MESSAGE( "Starting app1 and waiting 1500 ms" ); app1.startup(); - fc::usleep(fc::milliseconds(500)); - BOOST_TEST_MESSAGE( "Starting app2 and waiting 500 ms" ); + fc::usleep(fc::milliseconds(1500)); + BOOST_TEST_MESSAGE( "Starting app2 and waiting 1500 ms" ); app2.startup(); - fc::usleep(fc::milliseconds(500)); + fc::usleep(fc::milliseconds(1500)); BOOST_REQUIRE_EQUAL(app1.p2p_node()->get_connection_count(), 1); BOOST_CHECK_EQUAL(std::string(app1.p2p_node()->get_connected_peers().front().host.get_address()), "127.0.0.1");