Skip to content

Commit

Permalink
Specify the correct environment variable SLURM_PARTITION in errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fish committed Jun 19, 2024
1 parent c5071cd commit 7b68fcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_job_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
gh_testing = slurm_rest_url is None

if not gh_testing and not PARTITION:
raise ValueError("Need to define default partition in DEFAULT_SLURM_PARTITION")
raise ValueError("Need to define default partition in SLURM_PARTITION")


@pytest.mark.skipif(gh_testing, reason="running GitHub workflow")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_job_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
gh_testing = slurm_rest_url is None

if not gh_testing and not PARTITION:
raise ValueError("Need to define default partition in DEFAULT_SLURM_PARTITION")
raise ValueError("Need to define default partition in SLURM_PARTITION")


def create_js(timeout=timedelta(seconds=20)) -> JobScheduler:
Expand Down

0 comments on commit 7b68fcb

Please sign in to comment.