mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Correct a flaky spec
This commit is contained in:
parent
a3e9819158
commit
117ce24ac3
@ -41,7 +41,7 @@ describe UploadsController do
|
||||
|
||||
message = MessageBus.track_publish do
|
||||
xhr :post, :create, file: logo, type: "avatar"
|
||||
end.first
|
||||
end.find { |m| m.channel == "/uploads/avatar" }
|
||||
|
||||
expect(response.status).to eq 200
|
||||
|
||||
@ -56,7 +56,7 @@ describe UploadsController do
|
||||
|
||||
message = MessageBus.track_publish do
|
||||
xhr :post, :create, file: text_file, type: "composer"
|
||||
end.first
|
||||
end.find { |m| m.channel == "/uploads/composer" }
|
||||
|
||||
expect(response.status).to eq 200
|
||||
expect(message.channel).to eq("/uploads/composer")
|
||||
|
Loading…
Reference in New Issue
Block a user