Skip to content
Snippets Groups Projects
Commit 23a04dc3 authored by Philipp Schmidt's avatar Philipp Schmidt
Browse files

Try it with explicit returncode

parent e1d107d9
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !655. Comments created here will be created in the context of that merge request.
...@@ -193,7 +193,8 @@ async def test_get_slurm_nice(fake_process, cycle, num_jobs, expected_result): ...@@ -193,7 +193,8 @@ async def test_get_slurm_nice(fake_process, cycle, num_jobs, expected_result):
['squeue', '-h', '-o', '%.20j', '-p', 'exfel', '--me'], ['squeue', '-h', '-o', '%.20j', '-p', 'exfel', '--me'],
stdout=b'\n'.join( stdout=b'\n'.join(
[f'correct_SPB_{i}'.encode('ascii') for i in range(num_jobs)] + [f'correct_SPB_{i}'.encode('ascii') for i in range(num_jobs)] +
[f'correct_FXE_{i}'.encode('ascii') for i in range(num_jobs*2)])) [f'correct_FXE_{i}'.encode('ascii') for i in range(num_jobs*2)]),
returncode=0)
ret = await get_slurm_nice( ret = await get_slurm_nice(
'exfel', 'SPB', cycle, job_penalty=3, commissioning_penalty=5) 'exfel', 'SPB', cycle, job_penalty=3, commissioning_penalty=5)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment