Patch #36716

IssuesControllerTest randomly fails

Added by Vincent Robert 4 months ago. Updated 4 months ago.

Status:ClosedStart date:
Priority:LowDue date:
Assignee:Go MAEDA% Done:


Category:Code cleanup/refactoring
Target version:5.0.0


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

Thank you

Associated revisions

Revision 21445
Added by Go MAEDA 4 months ago

IssuesControllerTest randomly fails (#36716).

Patch by Vincent Robert.


#1 Updated by Go MAEDA 4 months 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.

Also available in: Atom PDF