UnitTests: Try to fix AcceptClient error
Former-commit-id: 2545ccc482b0726c23b85e12a3aaa294837676c1 [formerly eda50f108c9d8a4991b59346f47be1850b690f26] [formerly 8b467d645f61cc8b2fcb20318f5c8d792d3fe247 [formerly 287e1abaacb666890183535fc62fa33499f96e83]] Former-commit-id: 40325f685aa612016580d887e8fec111a0845594 [formerly 37695b3f6793e947d79c37b023b9f388b6d888d3] Former-commit-id: 7c6a7d60223733a253d05b52592146ddb51705b8
This commit is contained in:
parent
e0bae16564
commit
d59fd12824
|
|
@ -1 +0,0 @@
|
|||
ca02549e21a494540751b65126dcee5fddfb84db
|
||||
|
|
@ -1,10 +1,9 @@
|
|||
#include <Nazara/Core/Thread.hpp>
|
||||
#include <Nazara/Math/Vector3.hpp>
|
||||
#include <Nazara/Network/NetPacket.hpp>
|
||||
#include <Nazara/Network/TcpClient.hpp>
|
||||
#include <Nazara/Network/TcpServer.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
|
||||
#include <Nazara/Math/Vector3.hpp>
|
||||
#include <Nazara/Network/NetPacket.hpp>
|
||||
|
||||
#include <random>
|
||||
|
||||
SCENARIO("TCP", "[NETWORK][TCP]")
|
||||
|
|
@ -29,6 +28,8 @@ SCENARIO("TCP", "[NETWORK][TCP]")
|
|||
Nz::IpAddress clientIP = client.GetRemoteAddress();
|
||||
REQUIRE(clientIP.IsValid());
|
||||
|
||||
Nz::Thread::Sleep(100);
|
||||
|
||||
Nz::TcpClient serverToClient;
|
||||
REQUIRE(server.AcceptClient(&serverToClient));
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
6993cbcca9ac596667135cb0f30bea4841178d3b
|
||||
|
|
@ -1 +0,0 @@
|
|||
94b2c47c9143adbac0fb7e81df5cc87f969f7150
|
||||
Loading…
Reference in New Issue