Skip to content

Commit

Permalink
Another attempt to fix two_node test
Browse files Browse the repository at this point in the history
  • Loading branch information
pmconrad committed Nov 21, 2019
1 parent a96aa5a commit 471abef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>{"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" );
Expand Down

0 comments on commit 471abef

Please sign in to comment.