Skip to content

Commit 87c5eba

Browse files
committed
tests: Add slurm test of unknown job state
1 parent 8bc3226 commit 87c5eba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

batchspawner/tests/test_spawners.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ def test_slurm(db, io_loop):
425425
normal_slurm_script = [
426426
(re.compile(r'sudo.*sbatch'), str(testjob)),
427427
(re.compile(r'sudo.*squeue'), 'PENDING '), # pending
428+
(re.compile(r'sudo.*squeue'), 'slurm_load_jobs error: Unable to contact slurm controller'), # unknown
428429
(re.compile(r'sudo.*squeue'), 'RUNNING '+testhost), # running
429430
(re.compile(r'sudo.*squeue'), 'RUNNING '+testhost),
430431
(re.compile(r'sudo.*scancel'), 'STOP'),

0 commit comments

Comments
 (0)