From 324239bad6efc70d6192b73ef859f814f68e310b Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Sat, 8 Jun 2019 09:51:52 +0300 Subject: [PATCH] Fix for net integration test --- components/net/cpp/test/net_integration.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/net/cpp/test/net_integration.cpp b/components/net/cpp/test/net_integration.cpp index 829e03c2a..7cca78a48 100644 --- a/components/net/cpp/test/net_integration.cpp +++ b/components/net/cpp/test/net_integration.cpp @@ -207,6 +207,9 @@ TEST_CASE("Universe::broadcast()", "[net]") { c.bind("hello", [&done2](int v) { done2 = v; }); + + REQUIRE( a.numberOfPeers() == 2 ); + sleep_for(milliseconds(100)); // NOTE: Binding might not be ready a.broadcast("hello", 676); @@ -248,6 +251,8 @@ TEST_CASE("Universe::findAll()", "") { return {6,7,8}; }); + sleep_for(milliseconds(100)); // NOTE: Binding might not be ready + auto res = a.findAll<int>("test_all"); REQUIRE( (res.size() == 6) ); REQUIRE( (res[0] == 3 || res[0] == 6) ); -- GitLab