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 #1

Updated by Go MAEDA over 2 years ago

  • Subject changed from Avoid tests to randomly fail when running in parallel to IssuesControllerTest randomly fails
  • Category set to Code cleanup/refactoring
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Target version set to 5.0.0

Committed the patch. Thank you.

Actions

Also available in: Atom PDF