FIX: flaky post_alerter_spec.rb because of missing order (#10000)
This commit is contained in:
parent
70a88111dd
commit
f993d8a197
|
@ -463,6 +463,7 @@ class PostAlerter
|
||||||
.where("push_url IS NOT NULL AND push_url <> ''")
|
.where("push_url IS NOT NULL AND push_url <> ''")
|
||||||
.where("position(push_url IN ?) > 0", SiteSetting.allowed_user_api_push_urls)
|
.where("position(push_url IN ?) > 0", SiteSetting.allowed_user_api_push_urls)
|
||||||
.where("revoked_at IS NULL")
|
.where("revoked_at IS NULL")
|
||||||
|
.order(client_id: :asc)
|
||||||
.pluck(:client_id, :push_url)
|
.pluck(:client_id, :push_url)
|
||||||
|
|
||||||
if clients.length > 0
|
if clients.length > 0
|
||||||
|
|
Loading…
Reference in New Issue