Skip to content

Commit ff6d125

Browse files
committed
remove error fixture and add retry
1 parent 1189a22 commit ff6d125

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

test/integration/models/domain/test_domain.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,3 @@ def test_import(test_linode_client, test_domain):
5858
)
5959
domain = test_linode_client.load(Domain, test_domain.id)
6060

61-
62-
@pytest.fixture
63-
def broken_fixture():
64-
raise RuntimeError("This setup is intentionally broken.")
65-
66-
67-
def test_error(broken_fixture):
68-
pass # The test will never run because the fixture fails first

test/integration/models/linode/test_linode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ def test_linode_create_disk(test_linode_client, linode_for_disk_tests):
534534
assert disk.linode_id == linode.id
535535

536536

537+
@pytest.mark.flaky(reruns=3, reruns_delay=2)
537538
def test_linode_instance_password(create_linode_for_pass_reset):
538539
linode = create_linode_for_pass_reset[0]
539540
password = create_linode_for_pass_reset[1]

0 commit comments

Comments
 (0)