From e0e427728848ce8bb33b4a4d6f8937ec5788d2c6 Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 11 Oct 2017 11:20:22 -0300 Subject: [feature] make concurrent blob writes configurable --- tests/server/test_auth.py | 2 +- tests/server/test_config.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') 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']) -- cgit v1.2.3