Skip to content

Commit 3149317

Browse files
himani2411Himani Deshpande
andauthored
[Test] Adding sleep before we start-stop compute fleet to avoid sporadic failures (#6591)
Co-authored-by: Himani Deshpande <himanidp@amazon.com>
1 parent 8593336 commit 3149317

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration-tests/tests/cli_commands/test_cli_commands.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import re
1616
import tarfile
1717
import tempfile
18+
import time
1819

1920
import boto3
2021
import botocore
@@ -272,8 +273,11 @@ def _test_pcluster_compute_fleet(cluster, expected_num_nodes):
272273
logging.info("Testing pcluster start functionalities")
273274
# Do a complicated sequence of start and stop and see if commands will still work
274275
cluster.start()
276+
time.sleep(15)
275277
cluster.stop()
278+
time.sleep(15)
276279
cluster.stop()
280+
time.sleep(30)
277281
cluster.start()
278282
compute_fleet = cluster.describe_compute_fleet()
279283
last_start_time = compute_fleet["lastStatusUpdatedTime"]

0 commit comments

Comments
 (0)