From 471abefe83be33e58aeac66ba3bcab9e5b31ebda Mon Sep 17 00:00:00 2001 From: Peter Conrad Date: Thu, 21 Nov 2019 14:57:27 +0100 Subject: [PATCH] Another attempt to fix two_node test --- tests/app/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/app/main.cpp b/tests/app/main.cpp index 2f1147985c..4ee9921e0b 100644 --- a/tests/app/main.cpp +++ b/tests/app/main.cpp @@ -245,12 +245,10 @@ BOOST_AUTO_TEST_CASE( two_node_network ) app2.register_plugin< graphene::witness_plugin::witness_plugin >(); app2.register_plugin< graphene::grouped_orders::grouped_orders_plugin>(); app2.startup_plugins(); - auto cfg2 = cfg; - cfg2.erase("p2p-endpoint"); + boost::program_options::variables_map cfg2; cfg2.emplace("p2p-endpoint", boost::program_options::variable_value(string("127.0.0.1:4040"), false)); cfg2.emplace("genesis-json", boost::program_options::variable_value(create_genesis_file(app_dir), false)); - cfg2.emplace("seed-node", boost::program_options::variable_value(vector{"127.0.0.1:3939"}, false)); - cfg2.emplace("seed-nodes", boost::program_options::variable_value(string("[]"), false)); + cfg2.emplace("seed-nodes", boost::program_options::variable_value(string("[\"127.0.0.1:3939\"]"), false)); app2.initialize(app2_dir.path(), cfg2); BOOST_TEST_MESSAGE( "Starting app2 and waiting for connection" );