Skip to content

Commit

Permalink
Don't set unused conn_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDrike committed Feb 13, 2022
1 parent 32217b6 commit d19b4ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mcstatus/tests/test_querier.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_query_handles_unicode_motd_with_nulls(self):
)
)
response = self.querier.read_query()
conn_bytes = self.querier.connection.flush()
self.querier.connection.flush()

assert response.raw["game_id"] == "MINECRAFT"
assert response.motd == "\x00*KÕ"
Expand All @@ -67,7 +67,7 @@ def test_query_handles_unicode_motd_with_2a00_at_the_start(self):
)
)
response = self.querier.read_query()
conn_bytes = self.querier.connection.flush()
self.querier.connection.flush()

assert response.raw["game_id"] == "MINECRAFT"
assert response.motd == "\x00other" # "\u2a00other" is actually what is expected,
Expand Down

0 comments on commit d19b4ac

Please sign in to comment.