Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 9d0baf8

Browse files
committed
Retry test_create_replication test on failure
1 parent f6728b3 commit 9d0baf8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ mock==1.3.0
22
nose
33
sphinx
44
pylint
5+
flaky

tests/unit/replicator_tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
import time
2828
import requests
2929

30+
from flaky import flaky
31+
3032
from cloudant.replicator import Replicator
3133
from cloudant.document import Document
3234
from cloudant.error import CloudantException
@@ -116,6 +118,7 @@ def test_replication_with_generated_id(self):
116118
clone = Replicator(self.client)
117119
clone.create_replication(self.db, self.target_db)
118120

121+
@flaky(max_runs=3)
119122
def test_create_replication(self):
120123
"""
121124
Test that the replication document gets created and that the

0 commit comments

Comments
 (0)