summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriele <gsantomaggio@suse.com>2019-04-11 13:48:40 +0200
committerGabriele <gsantomaggio@suse.com>2019-04-11 13:55:21 +0200
commit0ad4a204b385273b671327028d30133725c6174e (patch)
treee025aa2bf82406bc5bec5a54b64ba34fd0125210
parente99af8ca576b7ff56eadbe6351216c2d0d2b93c7 (diff)
downloadoslo-messaging-0ad4a204b385273b671327028d30133725c6174e.tar.gz
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
-rwxr-xr-xtools/simulator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/simulator.py b/tools/simulator.py
index 0a9cd5e..fd4461d 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()