UnitTests: Fix blocking case
Former-commit-id: b504a619172a7c4c57d07d168fe4ae33bbd98210 [formerly 054c9b2c1261c438b74722be9f345417e64f3611] Former-commit-id: 498b99790dc187ace705a57cd9fdcec43ac1345d
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user