summaryrefslogtreecommitdiff
path: root/testing/tests/perf/test_sync.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-07-25 21:34:23 -0300
committerdrebs <drebs@leap.se>2016-08-01 21:09:04 -0300
commitde5cd462cc3f04275e22d9267ecb8e6c2b23dfda (patch)
treec5b89e91b9629c09fa144c614bf776af3962720b /testing/tests/perf/test_sync.py
parent76acb8f39a32b6b61f00af571bae9bd48c0a5d62 (diff)
[test] allow passing number of docs on command line on perf tests
Diffstat (limited to 'testing/tests/perf/test_sync.py')
-rw-r--r--testing/tests/perf/test_sync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/perf/test_sync.py b/testing/tests/perf/test_sync.py
index 9de733fb..45af9a91 100644
--- a/testing/tests/perf/test_sync.py
+++ b/testing/tests/perf/test_sync.py
@@ -12,7 +12,7 @@ content = ' ' * 10000
@pytest.inlineCallbacks
def test_upload(soledad_client, request):
# create a bunch of local documents
- uploads = 100
+ uploads = request.config.option.num_docs
deferreds = []
for i in xrange(uploads):
d = soledad_client.create_doc({'upload': True, 'content': content})
@@ -32,7 +32,7 @@ def test_upload(soledad_client, request):
@pytest.inlineCallbacks
def test_download(soledad_client, request):
# create a bunch of remote documents
- downloads = 100
+ downloads = request.config.option.num_docs
url = request.config.getoption('--couch-url')
remote = CouchDatabase(url, 'user-0')
for i in xrange(downloads):