Isolate load test from IP throttle

This commit is contained in:
Nomads_Reach
2026-08-16 00:10:08 -04:00
parent a56209c265
commit 56c8984845
+7 -1
View File
@@ -4,6 +4,7 @@ import json
import socket
import time
import server_core
from server_core import PROTOCOL_VERSION, FalloutTogetherServer
@@ -70,7 +71,12 @@ def start_server() -> FalloutTogetherServer:
return server
def test_sixteen_clients_do_not_cross_broadcast_distant_cell_transforms():
def test_sixteen_clients_do_not_cross_broadcast_distant_cell_transforms(monkeypatch):
# All synthetic clients originate from localhost. Bypass only the per-IP
# connection-attempt throttle so this test measures gameplay capacity and
# interest filtering instead of the independent abuse-control policy.
monkeypatch.setattr(server_core, "MAX_CONNECT_ATTEMPTS", 64)
server = start_server()
clients: list[tuple[socket.socket, int]] = []
try: