Skip to content

Commit 1a33d8b

Browse files
committed
Fix torque test when checking for scheduler configuration
Add 1 second sleep to give time to sqswatcher to reconfigure the master with np = max_nodes * node_slots This operation is performed right after sqswatcher removes the compute nodes from the scheduler Signed-off-by: Luca Carrogu <[email protected]>
1 parent 94dc839 commit 1a33d8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration-tests/tests/schedulers/test_torque.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ def _test_dynamic_cluster_limits(remote_command_executor, max_queue_size, max_sl
192192

193193
# Make sure cluster is scaled to 0 when this test starts
194194
assert_that(torque_commands.compute_nodes_count()).is_equal_to(0)
195-
195+
# sleeping for 1 second to give time to sqswatcher to reconfigure the master with np = max_nodes * node_slots
196+
# operation that is performed right after sqswatcher removes the compute nodes from the scheduler
197+
time.sleep(1)
196198
_assert_scheduler_configuration(remote_command_executor, torque_commands, max_slots, max_queue_size)
197199

198200
# Submit a job to scale up to 1 node

0 commit comments

Comments
 (0)