From 6a4929cee5572d6be7318cc0481301ad30357e4d Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Fri, 23 May 2025 14:16:52 +1000 Subject: [PATCH] DEV: when tracking message bus messages, track client ids This allows writing specs that track targetted client publishing --- spec/support/diagnostics_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/support/diagnostics_helper.rb b/spec/support/diagnostics_helper.rb index b4c4e7e7382d9..4646857435670 100644 --- a/spec/support/diagnostics_helper.rb +++ b/spec/support/diagnostics_helper.rb @@ -7,6 +7,7 @@ def publish(channel, data, opts = nil) m = MessageBus::Message.new(-1, id, channel, data) m.user_ids = opts[:user_ids] if opts m.group_ids = opts[:group_ids] if opts + m.client_ids = opts[:client_ids] if opts @tracking << m end id