UnitTests: Fix blocking case

Former-commit-id: b504a619172a7c4c57d07d168fe4ae33bbd98210 [formerly 054c9b2c1261c438b74722be9f345417e64f3611]
Former-commit-id: 498b99790dc187ace705a57cd9fdcec43ac1345d
This commit is contained in:
Lynix
2016-07-29 13:38:00 +02:00
parent 5d6cee8291
commit 3a50c1e553
2 changed files with 6 additions and 1 deletions

View File

@@ -18,6 +18,8 @@ SCENARIO("TCP", "[NETWORK][TCP]")
Nz::UInt16 port = dis(gen);
Nz::TcpServer server;
server.EnableBlocking(false);
REQUIRE(server.Listen(Nz::NetProtocol_IPv4, port) == Nz::SocketState_Bound);
Nz::IpAddress serverIP = server.GetBoundAddress();
REQUIRE(serverIP.IsValid());