summaryrefslogtreecommitdiff
path: root/testing/tests/perf
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-07-25 05:44:47 -0300
committerdrebs <drebs@leap.se>2016-08-01 21:09:03 -0300
commitc40a2bf488e03bef14d440ab1a847afab6f5fb76 (patch)
tree22e8f8ba32e441c5949a99ef67e28ee8693fe8ce /testing/tests/perf
parent4073d6a8542121504ef83b9cc02ecff94e041e32 (diff)
[test] add some payload to perf sync tests
Diffstat (limited to 'testing/tests/perf')
-rw-r--r--testing/tests/perf/test_sync.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/tests/perf/test_sync.py b/testing/tests/perf/test_sync.py
index 1e29a86a..fbe3b877 100644
--- a/testing/tests/perf/test_sync.py
+++ b/testing/tests/perf/test_sync.py
@@ -6,13 +6,16 @@ from leap.soledad.common.couch import CouchDatabase
from leap.soledad.common.document import ServerDocument
+content = ' ' * 10000
+
+
@pytest.inlineCallbacks
def test_upload(soledad_client):
# create a bunch of local documents
uploads = 100
deferreds = []
for i in xrange(uploads):
- d = soledad_client.create_doc({'upload': True})
+ d = soledad_client.create_doc({'upload': True, 'content': content})
deferreds.append(d)
yield gatherResults(deferreds)
@@ -32,7 +35,7 @@ def test_download(soledad_client):
remote = CouchDatabase('http://127.0.0.1:5984', 'user-0')
for i in xrange(downloads):
doc = ServerDocument('doc-%d' % i, 'replica:1')
- doc.content = {'download': True}
+ doc.content = {'download': True, 'content': content}
remote.save_document(None, doc, i)
# synchronize