test: update discovery fixtures for protocol v8
This commit is contained in:
parent
7cf555b0c8
commit
df3ee2f146
3 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue