Skip to content

Commit e1fcd00

Browse files
committed
fixed zeromq tests
1 parent 6009b25 commit e1fcd00

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

beaver/tests/test_zmq_transport.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ def setUp(self):
2020
self.beaver_config = BeaverConfig(mock.Mock(config=None))
2121

2222
def test_pub(self):
23-
os.environ["ZEROMQ_ADDRESS"] = "tcp://localhost:2120"
23+
self.beaver_config.set('zeromq_address', 'tcp://localhost:2120')
2424
transport = ZmqTransport(self.beaver_config, self.file_config)
2525
transport.interrupt()
2626
#assert not transport.zeromq_bind
2727

2828
def test_bind(self):
29-
self.beaver_config.mode = "bind"
30-
os.environ["ZEROMQ_ADDRESS"] = "tcp://*:2120"
29+
self.beaver_config.set('zeromq_bind', 'bind')
30+
self.beaver_config.set('zeromq_address', 'tcp://localhost:2120')
3131
transport = ZmqTransport(self.beaver_config, self.file_config)
3232
#assert transport.zeromq_bind
3333

0 commit comments

Comments
 (0)