summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-07-28 16:48:04 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-07-28 16:48:04 -0300
commite47f4bcc0eb9c3d08c649adcb62b0325f439113e (patch)
treefdaa0d8fd7912204112a8ce8d446324277040d22
parent08779379337ff77729c9d2ebdb6f4aaf486d38a7 (diff)
[test] set flag before starting client
Test client will only start with flag set to True. Change EventsGenericClientTestCase to set the flag on the first line of setUp.
-rw-r--r--src/leap/common/tests/test_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/common/tests/test_events.py b/src/leap/common/tests/test_events.py
index 8f08eeb..2ad097e 100644
--- a/src/leap/common/tests/test_events.py
+++ b/src/leap/common/tests/test_events.py
@@ -39,13 +39,13 @@ if 'DEBUG' in os.environ:
class EventsGenericClientTestCase(object):
def setUp(self):
+ flags.set_events_enabled(True)
self._server = server.ensure_server(
emit_addr="tcp://127.0.0.1:0",
reg_addr="tcp://127.0.0.1:0")
self._client.configure_client(
emit_addr="tcp://127.0.0.1:%d" % self._server.pull_port,
reg_addr="tcp://127.0.0.1:%d" % self._server.pub_port)
- flags.set_events_enabled(True)
def tearDown(self):
self._client.shutdown()