Skip to content

Commit ea88491

Browse files
committed
Increase CoreWar timeout
1 parent 6d243ef commit ea88491

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codeclash/games/corewar/corewar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def validate_code(self, agent: Player) -> tuple[bool, str | None]:
7272
return False, f"There should be a `{self.submission}` file"
7373
# Play game against a simple default bot to ensure it runs
7474
test_run_cmd = f"{self.run_cmd_round} {self.submission} /home/dwarf.red"
75-
test_run = agent.environment.execute(test_run_cmd)["output"]
75+
test_run = agent.environment.execute(test_run_cmd, timeout=60)["output"]
7676
if any([l.startswith("Error") for l in test_run.split("\n")]):
7777
return False, f"The `{self.submission}` file is malformed (Ran `{test_run_cmd}`):\n{test_run}"
7878
return True, None

0 commit comments

Comments
 (0)