Skip to content

Commit

Permalink
Fixed multinode test
Browse files Browse the repository at this point in the history
  • Loading branch information
spirali committed Feb 26, 2024
1 parent 7bd59b9 commit d42cc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_job_mn.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def test_submit_mn_complex_hostname(hq_env: HqEnv):
hq_env.start_worker(hostname="cn710.karolina.it4i.cz")

hq_env.command(["submit", "--nodes=2", "--", "bash", "-c", "sleep 1; cat ${HQ_NODE_FILE}; cat ${HQ_HOST_FILE}"])
wait_for_job_state(hq_env, 1, "FINISHED", timeout_s=1.2)
wait_for_job_state(hq_env, 1, "FINISHED")
with open(default_task_output(1)) as f:
hosts = f.read().rstrip().split("\n")
assert sorted(hosts[:2]) == ["cn690", "cn710"]
Expand Down

0 comments on commit d42cc65

Please sign in to comment.