fix(peerstate): encryption-not-available

Add a test for failing e2e encryption and some info statement to hunt where the e2e encryption failure comes from, as well as fix the issue.


Closes #233
This commit is contained in:
holger krekel
2019-08-09 13:28:48 +02:00
committed by Friedel Ziegelmayer
parent 4d8d5f4e1e
commit be605d8ea5
4 changed files with 114 additions and 9 deletions

View File

@@ -120,6 +120,8 @@ def acfactory(pytestconfig, tmpdir, request):
pytest.skip("specify a --liveconfig file to run tests with real accounts")
self.live_count += 1
configdict = self.configlist.pop(0)
if "e2ee_enabled" not in configdict:
configdict["e2ee_enabled"] = "1"
tmpdb = tmpdir.join("livedb%d" % self.live_count)
ac = Account(tmpdb.strpath, logid="ac{}".format(self.live_count))
ac._evlogger.init_time = self.init_time