UnitTests: Fix blocking case
Former-commit-id: 9bb17734f853246eadfdd547bbfdc8c54638cf0d [formerly ca377bfec10cb158b91d050af6a1f59835d04cce] Former-commit-id: 27d29d41082f8f796518c36d063e7b3afd6768e1
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