FIX: flaky post_alerter_spec.rb because of missing order (#10000)

This commit is contained in:
Krzysztof Kotlarek 2020-06-10 08:28:54 +10:00 committed by GitHub
parent 70a88111dd
commit f993d8a197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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