From 0ad4a204b385273b671327028d30133725c6174e Mon Sep 17 00:00:00 2001 From: Gabriele Date: Thu, 11 Apr 2019 13:48:40 +0200 Subject: [PATCH] Consider the topic parameter as an array in client-notify Without this fix, the simulator splits the "topic" value in different strings, in notify-client case Instead of having one queue there are multi-queues. See [1] for more details Closes-Bug: #1824339 1- https://bugs.launchpad.net/oslo.messaging/+bug/1824339 Change-Id: I438c7279d584bdb00da18477a83d5e2a53c588c4 --- tools/simulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/simulator.py b/tools/simulator.py index 0a9cd5e0b..fd4461ddd 100755 --- a/tools/simulator.py +++ b/tools/simulator.py @@ -549,7 +549,7 @@ def spawn_notify_clients(threads, topic, transport, message_count, wait_after_msg, timeout, duration): p = eventlet.GreenPool(size=threads) for i in six.moves.range(threads): - client_builder = functools.partial(NotifyClient, i, transport, topic, + client_builder = functools.partial(NotifyClient, i, transport, [topic], wait_after_msg) p.spawn_n(send_messages, i, client_builder, message_count, duration) p.waitall()