From 6991979f8fec0ac8b6600caf3a62ff8f229a570f Mon Sep 17 00:00:00 2001 From: b23r0 Date: Sat, 5 Feb 2022 22:18:44 +0800 Subject: [PATCH] fix tests. --- mcstatus/tests/test_querier.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mcstatus/tests/test_querier.py b/mcstatus/tests/test_querier.py index ac81f53..175e691 100644 --- a/mcstatus/tests/test_querier.py +++ b/mcstatus/tests/test_querier.py @@ -46,9 +46,7 @@ class TestMinecraftQuerier: ) response = self.querier.read_query() conn_bytes = self.querier.connection.flush() - - assert response.motd == b'\x00*K\xc3\x95'.decode() - # Make sure the order is correct + assert response.raw['game_id'] == 'MINECRAFT' assert response.motd == "\x00*KÕ" @@ -60,9 +58,7 @@ class TestMinecraftQuerier: ) response = self.querier.read_query() conn_bytes = self.querier.connection.flush() - - assert response.motd == "\x00other" - # Make sure the order is correct + assert response.raw["game_id"] == "MINECRAFT" assert response.motd == "\x00other" # "\u2a00other" is actually what is expected, # but the query protocol for vanilla has a bug when it comes to unicode handling.