DEV: Update user-status test to assert message-bus channels (#20068)

This test appears to be flaky. This assertion should help us track down the reason.
This commit is contained in:
David Taylor 2023-01-30 13:54:44 +00:00 committed by GitHub
parent 9a196ced08
commit fa7f8d8e1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ RSpec.describe UserStatusController do
put "/user-status.json", params: { description: status, emoji: emoji, ends_at: ends_at } put "/user-status.json", params: { description: status, emoji: emoji, ends_at: ends_at }
end end
expect(messages.size).to eq(1) expect(messages.map(&:channel)).to contain_exactly("/user-status")
expect(messages[0].channel).to eq("/user-status") expect(messages[0].channel).to eq("/user-status")
expect(messages[0].group_ids).to eq([Group::AUTO_GROUPS[:trust_level_0]]) expect(messages[0].group_ids).to eq([Group::AUTO_GROUPS[:trust_level_0]])