Skip to content
Snippets Groups Projects

Implements #3 net auto reconnect

Merged Nicolas Pope requested to merge issue/3/reconnect into master
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
@@ -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) );
Loading