Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Jun 3, 2024
1 parent ca576b5 commit c657b1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion posttroll/tests/test_secure_zmq_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def test_ipc_pubsub_with_sec_and_factory_sub(tmp_path):
clients_public_keys_directory=os.path.dirname(client_public_key_file),
server_public_key_file=server_public_key_file,
server_secret_key_file=server_secret_key_file):
subscriber_settings = dict(addresses=ipc_address, topics="", nameserver=False, port=10202)
subscriber_settings = dict(addresses=ipc_address, topics="", nameserver=False, port=10203)
sub = create_subscriber_from_dict_config(subscriber_settings)
pub_settings = dict(address=ipc_address,
nameservers=False, port=1789)
Expand All @@ -132,6 +132,7 @@ def test_ipc_pubsub_with_sec_and_factory_sub(tmp_path):
pub.start()

def delayed_send(msg):
time.sleep(.2)
msg = Message(subject="/hi", atype="string", data=msg)
pub.send(str(msg))
thr = Thread(target=delayed_send, args=["very sensitive message"])
Expand Down

0 comments on commit c657b1c

Please sign in to comment.