From 254f6fc4f9d2c72a6ab61c1b805374365c51cb77 Mon Sep 17 00:00:00 2001 From: Lynix Date: Wed, 5 Oct 2016 01:12:12 +0200 Subject: [PATCH] UnitTest: Make each network test use a different port, preventing them to block Former-commit-id: 168b9dbfea12e3729e68e8e3997025e14ced7990 [formerly cdfa45797832584cdb6e89e4619e6d79c893cfdf] [formerly d410f28ace50a77e49e455eae6e5d615a3141fde [formerly c8fc846a743b4bff94c5b25fefba0daf5af4058f]] Former-commit-id: 2c7aabb44d8b870cfa78b04e968cd336fb44369d [formerly 4e832af38d8fcd7e245fe249d6e2ea483a42dd1e] Former-commit-id: d02ca742f02bf62b72c06b78877d65e23972ed21 --- tests/Engine/Network/SocketPoller.cpp | 2 +- tests/Engine/Network/TCP.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Engine/Network/SocketPoller.cpp b/tests/Engine/Network/SocketPoller.cpp index 1f9c782d2..93012d3de 100644 --- a/tests/Engine/Network/SocketPoller.cpp +++ b/tests/Engine/Network/SocketPoller.cpp @@ -10,7 +10,7 @@ SCENARIO("SocketPoller", "[NETWORK][SOCKETPOLLER]") { GIVEN("A TcpServer and a TcpClient in a selector") { - Nz::UInt16 port = 64256; + Nz::UInt16 port = 25664; Nz::TcpServer server; server.EnableBlocking(false); diff --git a/tests/Engine/Network/TCP.cpp b/tests/Engine/Network/TCP.cpp index 7ee62cab9..549742fd7 100644 --- a/tests/Engine/Network/TCP.cpp +++ b/tests/Engine/Network/TCP.cpp @@ -11,7 +11,7 @@ SCENARIO("TCP", "[NETWORK][TCP]") { GIVEN("Two TCP, one client, one server") { - Nz::UInt16 port = 64256; + Nz::UInt16 port = 26456; Nz::TcpServer server; server.EnableBlocking(false);