]> source.dussan.org Git - redmine.git/commitdiff
Fix random test failure (#37674).
authorGo MAEDA <maeda@farend.jp>
Sat, 24 Sep 2022 04:54:54 +0000 (04:54 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 24 Sep 2022 04:54:54 +0000 (04:54 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@21835 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/user_query_test.rb

index daaeb1be0132adbc76cde39ca35b056a2d502213..d014ab0be91b6464be45e61539abfda2a65da375 100644 (file)
@@ -104,7 +104,7 @@ class UserQueryTest < ActiveSupport::TestCase
       q = UserQuery.new name: '_'
       q.add_filter('mail', op, [string])
       users = find_users_with_query q
-      assert_equal result, users.map(&:id), "#{op} #{string} should have found #{result}"
+      assert_equal result, users.map(&:id).sort, "#{op} #{string} should have found #{result}"
     end
   end