From cbc913f9026571ec209dea387ac3cbc85fd66cc3 Mon Sep 17 00:00:00 2001 From: "A.J. Beamon" Date: Fri, 19 Jul 2019 09:03:11 -0700 Subject: [PATCH] When run through external means (such as the binding tester), the size limits tests should not change db level defaults. --- bindings/python/tests/size_limit_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/tests/size_limit_tests.py b/bindings/python/tests/size_limit_tests.py index 7036eb27a4..9c71942999 100644 --- a/bindings/python/tests/size_limit_tests.py +++ b/bindings/python/tests/size_limit_tests.py @@ -34,8 +34,6 @@ def setValueWithLimit(tr, key, value, limit): tr[key] = value def test_size_limit_option(db): - db.options.set_transaction_timeout(2000) # 2 seconds - db.options.set_transaction_retry_limit(3) value = b'a' * 1024 setValue(db, b't1', value) @@ -94,5 +92,7 @@ def test_get_approximate_size(tr): if __name__ == '__main__': clusterFile = sys.argv[1] db = fdb.open(clusterFile) + db.options.set_transaction_timeout(2000) # 2 seconds + db.options.set_transaction_retry_limit(3) test_size_limit_option(db) test_get_approximate_size(db)