From c40a2bf488e03bef14d440ab1a847afab6f5fb76 Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 25 Jul 2016 05:44:47 -0300 Subject: [test] add some payload to perf sync tests --- testing/tests/perf/test_sync.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'testing/tests') 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 -- cgit v1.2.3