Skip to content

Commit 605550b

Browse files
GatsikBrutus5000
authored andcommitted
Fix flaky test (test_game_matchmaking_start)
1 parent 0fea7be commit 605550b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/integration_tests/test_matchmaker.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,8 @@ async def test_game_launch_message_game_options(lobby_server, tmp_user):
100100
}
101101

102102

103-
@pytest.mark.flaky
104103
@fast_forward(15)
105-
async def test_game_matchmaking_start(lobby_server, database):
104+
async def test_game_matchmaking_start(lobby_server, database, game_service):
106105
host_id, host, guest_id, guest = await queue_players_for_matchmaking(lobby_server)
107106

108107
# The player that queued last will be the host
@@ -139,8 +138,7 @@ async def test_game_matchmaking_start(lobby_server, database):
139138
})
140139

141140
# Wait for db to be updated
142-
await read_until_launched(host, game_id)
143-
await read_until_launched(guest, game_id)
141+
await game_service[game_id].wait_launched(None)
144142

145143
async with database.acquire() as conn:
146144
result = await conn.execute(select(

0 commit comments

Comments
 (0)