Skip to content
Snippets Groups Projects
Commit 324239ba authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix for net integration test

parent e43599d9
No related branches found
No related tags found
1 merge request!24Implements #3 net auto reconnect
Pipeline #11264 passed
......@@ -208,6 +208,9 @@ TEST_CASE("Universe::broadcast()", "[net]") {
done2 = v;
});
REQUIRE( a.numberOfPeers() == 2 );
sleep_for(milliseconds(100)); // NOTE: Binding might not be ready
a.broadcast("hello", 676);
sleep_for(milliseconds(100));
......@@ -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) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment