Skip to content

Commit a07c00e

Browse files
committed
fix a random test that needed a small delay
1 parent 740355c commit a07c00e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integration_tests/test_volumes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import time
23
import pytest
34
from datacrunch.datacrunch import DataCrunchClient
45
from datacrunch.constants import Locations, VolumeTypes, VolumeStatus
@@ -38,6 +39,9 @@ def test_permanently_delete_detached_volumes(seld, datacrunch_client):
3839
# permanently delete the detached volume
3940
datacrunch_client.volumes.delete(volume.id, is_permanent=True)
4041

42+
# sleep for 2 seconds
43+
time.sleep(2)
44+
4145
# make sure the volume is not in trash
4246
volumes = datacrunch_client.volumes.get_in_trash()
4347

@@ -58,6 +62,9 @@ def test_permanently_delete_a_deleted_volume_from_trash(self, datacrunch_client)
5862
# delete volume
5963
datacrunch_client.volumes.delete(volume.id)
6064

65+
# sleep for 2 seconds
66+
time.sleep(2)
67+
6168
# permanently delete the volume
6269
datacrunch_client.volumes.delete(volume.id, is_permanent=True)
6370

0 commit comments

Comments
 (0)