Add an optional timeout to Socket::AcceptClient

* This is needed since sometimes on tests a localhost socket won't immediately
  be available to accept()
This commit is contained in:
baldurk
2019-01-17 17:51:07 +00:00
parent 5d9d77f361
commit d64ad19f16
6 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ TEST_CASE("Test stream I/O operations over the network", "[streamio][network]")
REQUIRE(sender);
Network::Socket *receiver = server->AcceptClient(false);
Network::Socket *receiver = server->AcceptClient(50);
REQUIRE(receiver);