mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
add test-require to p2p/host
This commit is contained in:
parent
e623e8b020
commit
29de01b458
5
peer.cpp
5
peer.cpp
@ -44,7 +44,10 @@ BOOST_AUTO_TEST_CASE(host)
|
||||
|
||||
host1.addNode(node2, "127.0.0.1", host2prefs.listenPort, host2prefs.listenPort);
|
||||
|
||||
this_thread::sleep_for(chrono::seconds(3));
|
||||
this_thread::sleep_for(chrono::seconds(1));
|
||||
|
||||
BOOST_REQUIRE_EQUAL(host1.peerCount(), 1);
|
||||
BOOST_REQUIRE_EQUAL(host2.peerCount(), host1.peerCount());
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
@ -75,7 +75,6 @@ BOOST_AUTO_TEST_CASE(topic)
|
||||
|
||||
while (!started)
|
||||
this_thread::sleep_for(chrono::milliseconds(1));
|
||||
|
||||
|
||||
KeyPair us = KeyPair::create();
|
||||
for (int i = 0; i < 10; ++i)
|
||||
|
Loading…
Reference in New Issue
Block a user