File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 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):
364364 assert linode .status == "running"
365365
366366
367+ @pytest .mark .flaky (reruns = 3 , reruns_delay = 2 )
367368def test_linode_resize_with_class (
368369 test_linode_client , create_linode_for_long_running_tests
369370):
Original file line number Diff line number Diff line change 11import time
2- from test .integration .conftest import get_region
2+ from test .integration .helpers import send_request_when_resource_available
33
44import pytest
55
1818
1919@pytest .fixture (scope = "session" )
2020def 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
2222
2323
2424@pytest .fixture (scope = "session" )
@@ -38,7 +38,7 @@ def bucket(
3838 )
3939
4040 yield bucket
41- bucket .delete ( )
41+ send_request_when_resource_available ( timeout = 100 , func = bucket .delete )
4242
4343
4444@pytest .fixture (scope = "session" )
@@ -63,7 +63,8 @@ def bucket_with_endpoint(
6363 )
6464
6565 yield bucket
66- bucket .delete ()
66+
67+ send_request_when_resource_available (timeout = 100 , func = bucket .delete )
6768
6869
6970@pytest .fixture (scope = "session" )
You can’t perform that action at this time.
0 commit comments