From 2e514c5e96b9aec05929377f65826b85d4eb2e0a Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Fri, 13 Sep 2024 16:16:56 -0700 Subject: [PATCH] Fix zeromq transport unit tests --- tests/pytests/unit/transport/test_zeromq.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/pytests/unit/transport/test_zeromq.py b/tests/pytests/unit/transport/test_zeromq.py index c73b9db147d..65bde565b36 100644 --- a/tests/pytests/unit/transport/test_zeromq.py +++ b/tests/pytests/unit/transport/test_zeromq.py @@ -408,7 +408,9 @@ def test_zeromq_async_pub_channel_publish_port(temp_salt_master): ) opts["master_uri"] = "tcp://{interface}:{publish_port}".format(**opts) ioloop = tornado.ioloop.IOLoop() - transport = salt.transport.zeromq.PublishClient(opts, ioloop) + transport = salt.transport.zeromq.PublishClient( + opts, ioloop, host=opts["interface"], port=opts["publish_port"] + ) with transport: patch_socket = MagicMock(return_value=True) patch_auth = MagicMock(return_value=True) @@ -450,7 +452,9 @@ def test_zeromq_async_pub_channel_filtering_decode_message_no_match( opts["master_uri"] = "tcp://{interface}:{publish_port}".format(**opts) ioloop = tornado.ioloop.IOLoop() - channel = salt.transport.zeromq.PublishClient(opts, ioloop) + channel = salt.transport.zeromq.PublishClient( + opts, ioloop, host=opts["interface"], port=opts["publish_port"] + ) with channel: with patch( "salt.crypt.AsyncAuth.crypticle", @@ -497,7 +501,9 @@ def test_zeromq_async_pub_channel_filtering_decode_message( opts["master_uri"] = "tcp://{interface}:{publish_port}".format(**opts) ioloop = tornado.ioloop.IOLoop() - channel = salt.transport.zeromq.PublishClient(opts, ioloop) + channel = salt.transport.zeromq.PublishClient( + opts, ioloop, host=opts["interface"], port=opts["publish_port"] + ) with channel: with patch( "salt.crypt.AsyncAuth.crypticle",