summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/mail
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-03-12 20:08:57 +0100
committerdrebs <drebs@riseup.net>2017-03-12 20:08:57 +0100
commit7f0ff6a52119a423c1539c2122318b767eddf220 (patch)
tree017a0ab9715958b6da1156f1dd2d25e90ef20ff2 /src/leap/bitmask/mail
parent7b1f3d7fe7d54d3a2bec8a7e4a5ad5d08319116d (diff)
[bug] remove offline toggle
The offline toggle added a race condition in which the client could end up offline forever. We decided to remove it for now and then decide if soledad client needs to know about network connectivity (check: https://0xacab.org/leap/soledad/issues/8789).
Diffstat (limited to 'src/leap/bitmask/mail')
-rw-r--r--src/leap/bitmask/mail/imap/service/imap-server.tac3
-rw-r--r--src/leap/bitmask/mail/testing/__init__.py3
-rw-r--r--src/leap/bitmask/mail/testing/common.py1
3 files changed, 2 insertions, 5 deletions
diff --git a/src/leap/bitmask/mail/imap/service/imap-server.tac b/src/leap/bitmask/mail/imap/service/imap-server.tac
index a5c390f3..295bdc0f 100644
--- a/src/leap/bitmask/mail/imap/service/imap-server.tac
+++ b/src/leap/bitmask/mail/imap/service/imap-server.tac
@@ -65,8 +65,7 @@ def initialize_soledad(uuid, email, passwd,
secrets,
localdb,
server_url,
- cert_file,
- offline=True)
+ cert_file)
return soledad
diff --git a/src/leap/bitmask/mail/testing/__init__.py b/src/leap/bitmask/mail/testing/__init__.py
index 54aaa87a..2fc4c073 100644
--- a/src/leap/bitmask/mail/testing/__init__.py
+++ b/src/leap/bitmask/mail/testing/__init__.py
@@ -54,8 +54,7 @@ class KeyManagerWithSoledadTestCase(unittest.TestCase, BaseLeapTest):
server_url='',
cert_file=None,
auth_token=None,
- shared_db=defaultMockSharedDB(),
- offline=True)
+ shared_db=defaultMockSharedDB())
self.km = self._key_manager()
diff --git a/src/leap/bitmask/mail/testing/common.py b/src/leap/bitmask/mail/testing/common.py
index d969deef..3bd7bc91 100644
--- a/src/leap/bitmask/mail/testing/common.py
+++ b/src/leap/bitmask/mail/testing/common.py
@@ -70,7 +70,6 @@ def _initialize_soledad(email, gnupg_home, tempdir):
local_db_path,
server_url,
cert_file,
- offline=True,
shared_db=FakeSharedDb())
return soledad