summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testing/tests/benchmarks/test_sync.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/tests/benchmarks/test_sync.py b/testing/tests/benchmarks/test_sync.py
index 1bf6cc21..1501d74b 100644
--- a/testing/tests/benchmarks/test_sync.py
+++ b/testing/tests/benchmarks/test_sync.py
@@ -1,11 +1,14 @@
import pytest
+from twisted.internet.defer import gatherResults
@pytest.inlineCallbacks
def load_up(client, amount, payload):
# create a bunch of local documents
+ deferreds = []
for i in xrange(amount):
- yield client.create_doc({'content': payload})
+ deferreds.append(client.create_doc({'content': payload}))
+ yield gatherResults(deferreds)
def create_upload(uploads, size):