Skip to content

Commit c72280e

Browse files
authored
add retry to flaky test, safety around bucket delete (#538)
1 parent b2eff93 commit c72280e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/integration/models/linode/test_linode.py

+1
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ def test_linode_resize(create_linode_for_long_running_tests):
364364
assert linode.status == "running"
365365

366366

367+
@pytest.mark.flaky(reruns=3, reruns_delay=2)
367368
def test_linode_resize_with_class(
368369
test_linode_client, create_linode_for_long_running_tests
369370
):

test/integration/models/object_storage/test_obj.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import time
22
from test.integration.conftest import get_region
3+
from test.integration.helpers import send_request_when_resource_available
34

45
import pytest
56

@@ -38,7 +39,7 @@ def bucket(
3839
)
3940

4041
yield bucket
41-
bucket.delete()
42+
send_request_when_resource_available(timeout=100, func=bucket.delete)
4243

4344

4445
@pytest.fixture(scope="session")
@@ -63,7 +64,8 @@ def bucket_with_endpoint(
6364
)
6465

6566
yield bucket
66-
bucket.delete()
67+
68+
send_request_when_resource_available(timeout=100, func=bucket.delete)
6769

6870

6971
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)