summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-10-11 11:20:22 -0300
committerdrebs <drebs@riseup.net>2017-10-12 14:34:11 -0300
commite0e427728848ce8bb33b4a4d6f8937ec5788d2c6 (patch)
tree7f7ddaf67cb4dbe976fdceed9fcac81eb1767251 /tests
parent1cde86239f68ca8fa896ecf4ffc6b891eeb837e3 (diff)
[feature] make concurrent blob writes configurable
Diffstat (limited to 'tests')
-rw-r--r--tests/server/test_auth.py2
-rw-r--r--tests/server/test_config.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/server/test_auth.py b/tests/server/test_auth.py
index 78cf20ab..a313c934 100644
--- a/tests/server/test_auth.py
+++ b/tests/server/test_auth.py
@@ -43,7 +43,7 @@ class SoledadRealmTestCase(unittest.TestCase):
def test_returned_resource(self):
# we have to pass a pool to the realm , otherwise tests will hang
- conf = {'blobs': False}
+ conf = {'blobs': False, 'concurrent_blob_writes': 50}
pool = reactor.getThreadPool()
realm = SoledadRealm(conf=conf, sync_pool=pool)
iface, avatar, logout = realm.requestAvatar('any', None, IResource)
diff --git a/tests/server/test_config.py b/tests/server/test_config.py
index dfb09f4c..92b0f67f 100644
--- a/tests/server/test_config.py
+++ b/tests/server/test_config.py
@@ -66,5 +66,6 @@ class ConfigurationParsingTest(unittest.TestCase):
'batching': False,
'blobs': False,
'services_tokens_file': '/etc/soledad/services.tokens',
- 'blobs_path': '/var/lib/soledad/blobs'}
+ 'blobs_path': '/var/lib/soledad/blobs',
+ 'concurrent_blob_writes': 50}
self.assertDictEqual(expected, config['soledad-server'])