aboutsummaryrefslogtreecommitdiff
path: root/diplomacy/daide/tests/test_daide_game.py
diff options
context:
space:
mode:
Diffstat (limited to 'diplomacy/daide/tests/test_daide_game.py')
-rw-r--r--diplomacy/daide/tests/test_daide_game.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/diplomacy/daide/tests/test_daide_game.py b/diplomacy/daide/tests/test_daide_game.py
index e950edf..ef2efce 100644
--- a/diplomacy/daide/tests/test_daide_game.py
+++ b/diplomacy/daide/tests/test_daide_game.py
@@ -340,8 +340,10 @@ def run_game_data(nb_daide_clients, rules, csv_file):
server.start(port=port)
nb_regular_players = min(1, 7 - nb_daide_clients)
- server_game = ServerGame(map_name='standard', n_controls=nb_daide_clients + nb_regular_players, rules=rules)
- server_game.server = server
+ server_game = ServerGame(map_name='standard',
+ n_controls=nb_daide_clients + nb_regular_players,
+ rules=rules,
+ server=server)
# Register game on server.
server.add_new_game(server_game)