summaryrefslogtreecommitdiff
path: root/tests/benchmarks/test_blobs_sqlite_backend.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/test_blobs_sqlite_backend.py')
-rw-r--r--tests/benchmarks/test_blobs_sqlite_backend.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/benchmarks/test_blobs_sqlite_backend.py b/tests/benchmarks/test_blobs_sqlite_backend.py
index 8c6caa66..7dd51360 100644
--- a/tests/benchmarks/test_blobs_sqlite_backend.py
+++ b/tests/benchmarks/test_blobs_sqlite_backend.py
@@ -5,14 +5,10 @@ from uuid import uuid4
from io import BytesIO
from twisted.internet.defer import gatherResults
-from twisted.internet.defer import DeferredSemaphore
from leap.soledad.client._db.blobs import SQLiteBlobBackend
-semaphore = DeferredSemaphore(2)
-
-
#
# put
#
@@ -23,7 +19,7 @@ def put(backend, amount, data):
blob_id = uuid4().hex
fd = BytesIO(data)
size = len(data)
- d = semaphore.run(backend.put, blob_id, fd, size)
+ d = backend.put(blob_id, fd, size)
deferreds.append(d)
return gatherResults(deferreds)
@@ -51,7 +47,7 @@ test_sqlite_blobs_backend_put_1000_10k = create_put_test(1000, 10 * 1000)
#
-# put
+# get
#
@pytest.inlineCallbacks