summaryrefslogtreecommitdiff
path: root/oslo_db/tests/test_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_db/tests/test_api.py')
-rw-r--r--oslo_db/tests/test_api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo_db/tests/test_api.py b/oslo_db/tests/test_api.py
index ab33c8c..6863790 100644
--- a/oslo_db/tests/test_api.py
+++ b/oslo_db/tests/test_api.py
@@ -207,9 +207,9 @@ class DBRetryRequestCase(DBAPITestCase):
some_method()
def test_retry_wrapper_reaches_limit(self):
- max_retries = 10
+ max_retries = 2
- @api.wrap_db_retry(max_retries=10)
+ @api.wrap_db_retry(max_retries=max_retries)
def some_method(res):
res['result'] += 1
raise exception.RetryRequest(ValueError())