From 69bff5fc82a6e7029f3b05d2fd5c8de7ca732e09 Mon Sep 17 00:00:00 2001 From: Vlad Gluhovsky Date: Wed, 29 Jul 2015 23:33:14 +0200 Subject: [PATCH] small bugfix --- test/libwhisper/shhrpc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/libwhisper/shhrpc.cpp b/test/libwhisper/shhrpc.cpp index a2693b431..5d3fea641 100644 --- a/test/libwhisper/shhrpc.cpp +++ b/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());