|
@ -51,9 +51,11 @@ BOOST_AUTO_TEST_CASE(host) |
|
|
auto node2 = host2.id(); |
|
|
auto node2 = host2.id(); |
|
|
host2.start(); |
|
|
host2.start(); |
|
|
|
|
|
|
|
|
|
|
|
while (!host2.isStarted()) |
|
|
|
|
|
this_thread::sleep_for(chrono::milliseconds(20)); |
|
|
host1.addNode(node2, NodeIPEndpoint(bi::address::from_string("127.0.0.1"), host2prefs.listenPort, host2prefs.listenPort)); |
|
|
host1.addNode(node2, NodeIPEndpoint(bi::address::from_string("127.0.0.1"), host2prefs.listenPort, host2prefs.listenPort)); |
|
|
|
|
|
|
|
|
this_thread::sleep_for(chrono::seconds(3)); |
|
|
this_thread::sleep_for(chrono::seconds(10)); |
|
|
|
|
|
|
|
|
auto host1peerCount = host1.peerCount(); |
|
|
auto host1peerCount = host1.peerCount(); |
|
|
auto host2peerCount = host2.peerCount(); |
|
|
auto host2peerCount = host2.peerCount(); |
|
|