File tree 2 files changed +6
-4
lines changed 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -364,6 +364,7 @@ def test_linode_resize(create_linode_for_long_running_tests):
364
364
assert linode .status == "running"
365
365
366
366
367
+ @pytest .mark .flaky (reruns = 3 , reruns_delay = 2 )
367
368
def test_linode_resize_with_class (
368
369
test_linode_client , create_linode_for_long_running_tests
369
370
):
Original file line number Diff line number Diff line change 1
1
import time
2
- from test .integration .conftest import get_region
2
+ from test .integration .helpers import send_request_when_resource_available
3
3
4
4
import pytest
5
5
18
18
19
19
@pytest .fixture (scope = "session" )
20
20
def region (test_linode_client : LinodeClient ):
21
- return get_region (test_linode_client , {"Object Storage" }).id
21
+ return "us-southeast" # uncomment get_region(test_linode_client, {"Object Storage"}).id
22
22
23
23
24
24
@pytest .fixture (scope = "session" )
@@ -38,7 +38,7 @@ def bucket(
38
38
)
39
39
40
40
yield bucket
41
- bucket .delete ( )
41
+ send_request_when_resource_available ( timeout = 100 , func = bucket .delete )
42
42
43
43
44
44
@pytest .fixture (scope = "session" )
@@ -63,7 +63,8 @@ def bucket_with_endpoint(
63
63
)
64
64
65
65
yield bucket
66
- bucket .delete ()
66
+
67
+ send_request_when_resource_available (timeout = 100 , func = bucket .delete )
67
68
68
69
69
70
@pytest .fixture (scope = "session" )
You can’t perform that action at this time.
0 commit comments