diff --git a/components/net/cpp/test/net_integration.cpp b/components/net/cpp/test/net_integration.cpp index 829e03c2ad9cc22c1f5fd812aa89a17eeb001c2f..7cca78a481a33f57e037765b206d39bb77745867 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) );