mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 14:32:46 +08: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
|
message = MessageBus.track_publish do
|
||||||
xhr :post, :create, file: logo, type: "avatar"
|
xhr :post, :create, file: logo, type: "avatar"
|
||||||
end.first
|
end.find { |m| m.channel == "/uploads/avatar" }
|
||||||
|
|
||||||
expect(response.status).to eq 200
|
expect(response.status).to eq 200
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ describe UploadsController do
|
||||||
|
|
||||||
message = MessageBus.track_publish do
|
message = MessageBus.track_publish do
|
||||||
xhr :post, :create, file: text_file, type: "composer"
|
xhr :post, :create, file: text_file, type: "composer"
|
||||||
end.first
|
end.find { |m| m.channel == "/uploads/composer" }
|
||||||
|
|
||||||
expect(response.status).to eq 200
|
expect(response.status).to eq 200
|
||||||
expect(message.channel).to eq("/uploads/composer")
|
expect(message.channel).to eq("/uploads/composer")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user