From df3ee2f146ea6ea724729fad2d26b8e55e2230e6 Mon Sep 17 00:00:00 2001 From: Voyager Date: Tue, 18 Aug 2026 21:20:12 -0400 Subject: [PATCH] test: update discovery fixtures for protocol v8 --- docs/API.md | 2 +- tests/test_http_api.py | 4 ++-- tests/test_registry.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/API.md b/docs/API.md index 5c26f0a..ff8aa2a 100644 --- a/docs/API.md +++ b/docs/API.md @@ -33,7 +33,7 @@ trusting an address supplied by the game client. "current_players": 0, "max_players": 8, "game_version": "0.12.0-alpha", - "protocol_version": 7 + "protocol_version": 8 } ``` diff --git a/tests/test_http_api.py b/tests/test_http_api.py index eb67c43..5b180e5 100644 --- a/tests/test_http_api.py +++ b/tests/test_http_api.py @@ -20,7 +20,7 @@ VALID_ROOM = { "current_players": 1, "max_players": 8, "game_version": "0.12.0-alpha", - "protocol_version": 7, + "protocol_version": 8, } @@ -85,7 +85,7 @@ class DiscoveryHTTPTests(unittest.TestCase): self.assertIsInstance(room_id, str) self.assertIsInstance(token, str) - status, listing = self.request("GET", "/v1/rooms?protocol_version=7") + status, listing = self.request("GET", "/v1/rooms?protocol_version=8") self.assertEqual(status, 200) assert listing is not None listed_rooms = listing["rooms"] diff --git a/tests/test_registry.py b/tests/test_registry.py index 84bc085..dd49a0e 100644 --- a/tests/test_registry.py +++ b/tests/test_registry.py @@ -17,7 +17,7 @@ VALID_ROOM = { "current_players": 1, "max_players": 8, "game_version": "0.12.0-alpha", - "protocol_version": 7, + "protocol_version": 8, } @@ -112,7 +112,7 @@ class RoomRegistryTests(unittest.TestCase): "203.0.113.11", dict(VALID_ROOM, room_name="Older Room", protocol_version=3), ) - self.assertEqual(self.registry.list_rooms(protocol_version=7), [expected]) + self.assertEqual(self.registry.list_rooms(protocol_version=8), [expected]) self.assertEqual(self.registry.list_rooms(game_version="missing"), []) def test_room_limits_bound_untrusted_advertisements(self) -> None: