Add a yield to make TCPTest more resilient

This commit is contained in:
SirLynix 2022-12-18 17:19:40 +01:00
parent 46fe1c550c
commit fd29d8d031
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ SCENARIO("TCP", "[NETWORK][TCP]")
packet << vector123;
REQUIRE(client.SendPacket(packet));
std::this_thread::yield();
THEN("We should get it on the server")
{
CHECK(!serverToClient.EndOfStream());