]> source.dussan.org Git - redmine.git/commitdiff
Fix an intermittent test failure in JournalTest (#39180).
authorGo MAEDA <maeda@farend.jp>
Thu, 12 Oct 2023 09:17:42 +0000 (09:17 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 12 Oct 2023 09:17:42 +0000 (09:17 +0000)
Patch by Vincent Robert.

git-svn-id: https://svn.redmine.org/redmine/trunk@22336 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/journal_test.rb

index 373de93a2156479fda12b2cb484abf35f77ab7b1..42843e37ccfabd31d5069082f745e580b35be8cb 100644 (file)
@@ -279,6 +279,6 @@ class JournalTest < ActiveSupport::TestCase
 
     # User "dlopper" has "Developer" role on project "eCookbook"
     # Role "Developer" does not have the "View private notes" permission
-    assert_equal [1, 2], journal.notified_mentions.map(&:id)
+    assert_equal [1, 2], journal.notified_mentions.map(&:id).sort
   end
 end