]> source.dussan.org Git - redmine.git/commitdiff
MessagesControllerTest#test_post_new randomly fails (#34169).
authorGo MAEDA <maeda@farend.jp>
Wed, 4 Nov 2020 07:49:42 +0000 (07:49 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 4 Nov 2020 07:49:42 +0000 (07:49 +0000)
Patch by Mizuki ISHIKAWA.

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

test/functional/messages_controller_test.rb

index ba28e538e34fe938cadac5b88273e100973fb9a5..f5a40a1d7fde29b1c7fb09931ce31053e1c44331 100644 (file)
@@ -146,10 +146,11 @@ class MessagesControllerTest < Redmine::ControllerTest
       assert_mail_body_match 'Message body', mail
     end
 
+    bcc_email_addresses = mails.map(&:bcc).flatten
     # author
-    assert_equal ['jsmith@somenet.foo'], mails[0].bcc
+    assert_includes bcc_email_addresses, 'jsmith@somenet.foo'
     # project member
-    assert_equal ['dlopper@somenet.foo'], mails[1].bcc
+    assert_includes bcc_email_addresses, 'dlopper@somenet.foo'
   end
 
   def test_get_edit