Skip to content

Commit 65b1dd5

Browse files
hanwen-clusterhanwen-pcluste
authored andcommitted
[Integ-tests] Simplify checks in memory based scheduling test
Prior to this commit, the code had duplicate checks without retry. It was unnecessary and and caused sporadic failures Signed-off-by: Hanwen <[email protected]>
1 parent 7a68688 commit 65b1dd5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/integration-tests/tests/schedulers/test_slurm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2621,9 +2621,8 @@ def _test_slurm_behavior_when_updating_schedulable_memory_with_already_running_j
26212621
["/var/log/slurmctld.log"],
26222622
[f"node {node} memory is overallocated"],
26232623
)
2624-
assert_that(slurm_commands.get_job_info(job_id_1, field="JobState")).is_equal_to("RUNNING")
2624+
slurm_commands.wait_job_running(job_id_1)
26252625
slurm_commands.wait_job_completed(job_id_1)
2626-
assert_that(slurm_commands.get_job_info(job_id_1, field="JobState")).is_equal_to("COMPLETED")
26272626

26282627

26292628
def _test_scontrol_reboot_nodes(

0 commit comments

Comments
 (0)