Skip to content

Commit d1474d3

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 <hanwenli@amazon.com>
1 parent 00d0017 commit d1474d3

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
@@ -2588,9 +2588,8 @@ def _test_slurm_behavior_when_updating_schedulable_memory_with_already_running_j
25882588
["/var/log/slurmctld.log"],
25892589
[f"node {node} memory is overallocated"],
25902590
)
2591-
assert_that(slurm_commands.get_job_info(job_id_1, field="JobState")).is_equal_to("RUNNING")
2591+
slurm_commands.wait_job_running(job_id_1)
25922592
slurm_commands.wait_job_completed(job_id_1)
2593-
assert_that(slurm_commands.get_job_info(job_id_1, field="JobState")).is_equal_to("COMPLETED")
25942593

25952594

25962595
def _test_scontrol_reboot_nodes(

0 commit comments

Comments
 (0)