fix tests.

This commit is contained in:
b23r0
2022-02-05 22:18:44 +08:00
parent 8e15847cae
commit 6991979f8f

View File

@@ -47,8 +47,6 @@ class TestMinecraftQuerier:
response = self.querier.read_query() response = self.querier.read_query()
conn_bytes = self.querier.connection.flush() 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.raw['game_id'] == 'MINECRAFT'
assert response.motd == "\x00*KÕ" assert response.motd == "\x00*KÕ"
@@ -61,8 +59,6 @@ class TestMinecraftQuerier:
response = self.querier.read_query() response = self.querier.read_query()
conn_bytes = self.querier.connection.flush() conn_bytes = self.querier.connection.flush()
assert response.motd == "\x00other"
# Make sure the order is correct
assert response.raw["game_id"] == "MINECRAFT" assert response.raw["game_id"] == "MINECRAFT"
assert response.motd == "\x00other" # "\u2a00other" is actually what is expected, 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. # but the query protocol for vanilla has a bug when it comes to unicode handling.