def METHOD_NAME(
    request,
    database,
    game,
    players,
    game_service,
    player_service,
    event_loop
):
    conn = GameConnection(
        database=database,
        game=game,
        player=players.hosting,
        protocol=mock.create_autospec(QDataStreamProtocol),
        player_service=player_service,
        games=game_service
    )
    conn.finished_sim = False
    def fin():
        event_loop.run_until_complete(conn.abort())
    request.addfinalizer(fin)
    return conn