diff options
author | subtly <subtly@users.noreply.github.com> | 2015-01-26 13:43:53 +0800 |
---|---|---|
committer | subtly <subtly@users.noreply.github.com> | 2015-01-26 13:43:53 +0800 |
commit | 29de01b458401615d56a8c9ebbda5e0c7805e9eb (patch) | |
tree | fc13edf8c23fe02a02a668b27626e38fecd7c76f /peer.cpp | |
parent | e623e8b02089011b7282b3d6289e832a70c664f8 (diff) | |
download | dexon-solidity-29de01b458401615d56a8c9ebbda5e0c7805e9eb.tar dexon-solidity-29de01b458401615d56a8c9ebbda5e0c7805e9eb.tar.gz dexon-solidity-29de01b458401615d56a8c9ebbda5e0c7805e9eb.tar.bz2 dexon-solidity-29de01b458401615d56a8c9ebbda5e0c7805e9eb.tar.lz dexon-solidity-29de01b458401615d56a8c9ebbda5e0c7805e9eb.tar.xz dexon-solidity-29de01b458401615d56a8c9ebbda5e0c7805e9eb.tar.zst dexon-solidity-29de01b458401615d56a8c9ebbda5e0c7805e9eb.zip |
add test-require to p2p/host
Diffstat (limited to 'peer.cpp')
-rw-r--r-- | peer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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() |