From c657b1ccbf3fbecb5819c1b41ddd2d31b592729b Mon Sep 17 00:00:00 2001 From: Martin Raspaud Date: Mon, 3 Jun 2024 12:36:07 +0200 Subject: [PATCH] Fix tests --- posttroll/tests/test_secure_zmq_backend.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/posttroll/tests/test_secure_zmq_backend.py b/posttroll/tests/test_secure_zmq_backend.py index 36542d4..f912125 100644 --- a/posttroll/tests/test_secure_zmq_backend.py +++ b/posttroll/tests/test_secure_zmq_backend.py @@ -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) @@ -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"])