summaryrefslogtreecommitdiff
path: root/common/src/leap
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-07-29 18:16:54 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-07-29 18:16:54 -0300
commit970f898206d81694dbe1a1db84da923cc78fc915 (patch)
treebb7be0c7715486cb2492d3f506f4714e1efe30a1 /common/src/leap
parentc8fcfb452392af6b54e36a4bd0788f7b412fdc5c (diff)
[test] Added events enabled flag to False for the tests
The soledad tests were breaking after the change to zmq, the event server was trying to create a zmq instance but there are some missing files that prevented the tests from running just fixed those and the tests run again
Diffstat (limited to 'common/src/leap')
-rw-r--r--common/src/leap/soledad/common/tests/util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/src/leap/soledad/common/tests/util.py b/common/src/leap/soledad/common/tests/util.py
index d8d86850..140d0ea1 100644
--- a/common/src/leap/soledad/common/tests/util.py
+++ b/common/src/leap/soledad/common/tests/util.py
@@ -43,6 +43,7 @@ from u1db.remote import http_database
from twisted.trial import unittest
from leap.common.files import mkdir_p
+from leap.common.events.flags import set_events_enabled
from leap.soledad.common import soledad_assert
from leap.soledad.common.document import SoledadDocument
@@ -194,6 +195,9 @@ class BaseSoledadTest(unittest.TestCase, MockedSharedDBTest):
# The following snippet comes from BaseLeapTest.setUpClass, but we
# repeat it here because twisted.trial does not work with
# setUpClass/tearDownClass.
+
+ set_events_enabled(False)
+
self.old_path = os.environ['PATH']
self.old_home = os.environ['HOME']
self.tempdir = tempfile.mkdtemp(prefix="leap_tests-")