fix Enet_test attempt

This commit is contained in:
2024-08-02 14:25:19 +02:00
parent c14234551d
commit b6530c1220

View File

@@ -17,7 +17,7 @@ int main() {
blitz::network::EnetClient client3(Nz::IpAddress{"127.0.0.1:" + std::to_string(port)}); blitz::network::EnetClient client3(Nz::IpAddress{"127.0.0.1:" + std::to_string(port)});
blitz::network::EnetClient client4(Nz::IpAddress{"127.0.0.1:" + std::to_string(port)}); blitz::network::EnetClient client4(Nz::IpAddress{"127.0.0.1:" + std::to_string(port)});
std::this_thread::sleep_for(200ms); std::this_thread::sleep_for(1s);
blitz_test_assert(client.GetConnection().IsConnected()); blitz_test_assert(client.GetConnection().IsConnected());
@@ -35,7 +35,7 @@ int main() {
clientSendCount++; clientSendCount++;
}); });
std::this_thread::sleep_for(200ms); std::this_thread::sleep_for(1s);
client.GetConnection().SendKeepAlive({69}); client.GetConnection().SendKeepAlive({69});