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

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

diff --git a/app/services/post_alerter.rb b/app/services/post_alerter.rb
index 79d8b7e..24d8b48 100644
--- a/app/services/post_alerter.rb
+++ b/app/services/post_alerter.rb
@@ -463,6 +463,7 @@ class PostAlerter
         .where("push_url IS NOT NULL AND push_url <> ''")
         .where("position(push_url IN ?) > 0", SiteSetting.allowed_user_api_push_urls)
         .where("revoked_at IS NULL")
+        .order(client_id: :asc)
         .pluck(:client_id, :push_url)
 
       if clients.length > 0

GitHub sha: f993d8a1

1 Like

This commit appears in #10000 which was merged by lis2.

10,000th pull request :tada: