Skip to content

Add retry to flaky test and bucket delete in obj fixtures #538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/integration/models/linode/test_linode.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ def test_linode_resize(create_linode_for_long_running_tests):
assert linode.status == "running"


@pytest.mark.flaky(reruns=3, reruns_delay=2)
def test_linode_resize_with_class(
test_linode_client, create_linode_for_long_running_tests
):
Expand Down
6 changes: 4 additions & 2 deletions test/integration/models/object_storage/test_obj.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import time
from test.integration.conftest import get_region
from test.integration.helpers import send_request_when_resource_available

import pytest

Expand Down Expand Up @@ -38,7 +39,7 @@ def bucket(
)

yield bucket
bucket.delete()
send_request_when_resource_available(timeout=100, func=bucket.delete)


@pytest.fixture(scope="session")
Expand All @@ -63,7 +64,8 @@ def bucket_with_endpoint(
)

yield bucket
bucket.delete()

send_request_when_resource_available(timeout=100, func=bucket.delete)


@pytest.fixture(scope="session")
Expand Down