diff --git a/server/lobbyconnection.py b/server/lobbyconnection.py index 2dd320053..325e91b13 100644 --- a/server/lobbyconnection.py +++ b/server/lobbyconnection.py @@ -560,7 +560,10 @@ async def command_hello(self, message): old_player = self.player_service.get_player(self.player.id) if old_player: - self._logger.debug("player {} already signed in: {}".format(self.player.id, old_player)) + self._logger.debug( + "player %s already signed in: %s", + self.player.id, old_player + ) if old_player.lobby_connection is not None: with contextlib.suppress(DisconnectedError): old_player.lobby_connection.write_warning( diff --git a/tests/integration_tests/test_game.py b/tests/integration_tests/test_game.py index 1be5e3575..6a1928efb 100644 --- a/tests/integration_tests/test_game.py +++ b/tests/integration_tests/test_game.py @@ -82,7 +82,7 @@ async def queue_player_for_matchmaking(user, lobby_server, queue_name): "search_info", state="start", queue_name=queue_name, - timeout=5 + timeout=10 ) return proto diff --git a/tests/integration_tests/test_matchmaker.py b/tests/integration_tests/test_matchmaker.py index 44628dc80..92a92d9f2 100644 --- a/tests/integration_tests/test_matchmaker.py +++ b/tests/integration_tests/test_matchmaker.py @@ -342,8 +342,10 @@ async def test_anti_map_repetition(lobby_server): # was played. We don't actually play the game out here, so the players # game history should remain unchanged. for _ in range(20): - await proto1.close() - await proto2.close() + await asyncio.gather( + proto1.close(), + proto2.close() + ) proto1, proto2 = await queue_players_for_matchmaking(lobby_server) msg = await read_until_command(proto1, "game_launch")