From 1748048b440916832e8a7b9f4bc9bb0450b90d76 Mon Sep 17 00:00:00 2001 From: Uriel Date: Mon, 9 Mar 2026 05:09:05 -0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com> --- test/webhost/test_port_allocation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/webhost/test_port_allocation.py b/test/webhost/test_port_allocation.py index 4368097fce..664e997c03 100644 --- a/test/webhost/test_port_allocation.py +++ b/test/webhost/test_port_allocation.py @@ -2,6 +2,7 @@ import os import platform import unittest +from Utils import is_macos from WebHostLib.customserver import parse_game_ports, create_random_port_socket, get_used_ports ci = bool(os.environ.get("CI")) @@ -75,7 +76,7 @@ class TestPortAllocating(unittest.TestCase): s.close() sockets.clear() - length = 5_000 if platform.system() == "Darwin" else (30_000 - len(get_used_ports())) + length = 5_000 if is_macos else (30_000 - len(get_used_ports())) for _ in range(length): socket = create_random_port_socket(("30000-65535",), "127.0.0.1") sockets.append(socket)