Browse Source

small bugfix

cl-refactor
Vlad Gluhovsky 10 years ago
parent
commit
69bff5fc82
  1. 4
      test/libwhisper/shhrpc.cpp

4
test/libwhisper/shhrpc.cpp

@ -167,7 +167,7 @@ BOOST_AUTO_TEST_CASE(send)
}
});
for (unsigned i = 0; i < 2000 && (!host2.haveNetwork() || web3->haveNetwork()); i += step)
for (unsigned i = 0; i < 2000 && (!host2.haveNetwork() || !web3->haveNetwork()); i += step)
this_thread::sleep_for(chrono::milliseconds(step));
BOOST_REQUIRE(host2.haveNetwork());
@ -235,7 +235,7 @@ BOOST_AUTO_TEST_CASE(receive)
}
});
for (unsigned i = 0; i < 2000 && (!host2.haveNetwork() || web3->haveNetwork()); i += step)
for (unsigned i = 0; i < 2000 && (!host2.haveNetwork() || !web3->haveNetwork()); i += step)
this_thread::sleep_for(chrono::milliseconds(step));
BOOST_REQUIRE(host2.haveNetwork());

Loading…
Cancel
Save