Project

General

Profile

Actions

Patch #36716

closed

IssuesControllerTest randomly fails

Added by Vincent Robert over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hi
Please find below a patch to fix this test, which randomly fail when running in parallel:

+++ /test/functional/issues_controller_test.rb
@@ -7884,7 +7884,7 @@ class IssuesControllerTest < Redmine::ControllerTest
     end
     copy = Issue.order(:id => :desc).first
     assert_equal 2, copy.watchers.count
-    assert_equal [3, 10], copy.watcher_user_ids
+    assert_equal [3, 10], copy.watcher_user_ids.sort
   end

Thank you

Actions

Also available in: Atom PDF