summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2016-10-05 19:52:58 -0300
committerVictor Shyba <victor1984@riseup.net>2016-10-21 14:09:54 -0300
commit09a62dd1d6b076fcc7ac001d0b998ebb119feaad (patch)
tree0e5795aab017cd78e200e04a1a08f5ad1d800e9f /server/src
parent28eb55c8388fa0dd713471d1c3334ef4ccb49ae4 (diff)
[tests] make check_schema_versions default to False
CouchServerState is spread across test codebase and this option is intended to be used only on server startup. This commit makes it default to False and explicitly set it to True on where it's necessary.
Diffstat (limited to 'server/src')
-rw-r--r--server/src/leap/soledad/server/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/leap/soledad/server/__init__.py b/server/src/leap/soledad/server/__init__.py
index 2e1a453a..e4fa4aa7 100644
--- a/server/src/leap/soledad/server/__init__.py
+++ b/server/src/leap/soledad/server/__init__.py
@@ -267,7 +267,8 @@ def _load_config():
def _get_couch_state():
conf = _load_config()
- state = CouchServerState(conf['couch_url'], create_cmd=conf['create_cmd'])
+ state = CouchServerState(conf['couch_url'], create_cmd=conf['create_cmd'],
+ check_schema_versions=True)
SoledadBackend.BATCH_SUPPORT = conf.get('batching', False)
return state