Project

General

Profile

Actions

Patch #33100

closed

Fix a test - Issue watchers are not always sorted by id

Added by Vincent Robert about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hello
Could you please apply this tiny patch?

Currently, when running issues_controller tests, returned issue-watchers are not always sorted by id, which may break the tests.

line 5245 in class IssuesControllerTest
-    assert_equal [3, 10], issue.watcher_user_ids
+    assert_equal [3, 10], issue.watcher_user_ids.sort

Thank you for your work
Vincent


Files

test_fix.diff (555 Bytes) test_fix.diff Vincent Robert, 2020-03-05 12:14

Related issues

Related to Redmine - Feature #4511: Allow adding user groups as watchers for issuesClosedGo MAEDA2010-01-01

Actions
Actions #1

Updated by Go MAEDA about 4 years ago

  • Related to Feature #4511: Allow adding user groups as watchers for issues added
Actions #2

Updated by Go MAEDA about 4 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the fix as a part of #4511. Thank you for detecting and fixing the issue.

Actions

Also available in: Atom PDF