Project

General

Profile

Actions

Patch #41951

closed

Fix random test failure in IssueTest due to unsorted expected_statuses

Added by Go MAEDA 11 days ago. Updated 11 days ago.

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

0%

Estimated time:

Description

 Failure:
IssueTest#test_new_statuses_allowed_to_should_only_return_transitions_of_considered_workflows [test/unit/issue_test.rb:895]:
--- expected
+++ actual
@@ -1 +1 @@
-#<ActiveRecord::Relation [#<IssueStatus id: 2, name: "Assigned", is_closed: false, position: 2, default_done_ratio: nil, description: "Description for Assigned issue status">, #<IssueStatus id: 1, name: "New", is_closed: false, position: 1, default_done_ratio: nil, description: "Description for New issue status">]>
+[#<IssueStatus id: 1, name: "New", is_closed: false, position: 1, default_done_ratio: nil, description: "Description for New issue status">, #<IssueStatus id: 2, name: "Assigned", is_closed: false, position: 2, default_done_ratio: nil, description: "Description for Assigned issue status">]

bin/rails test test/unit/issue_test.rb:879

Files

Actions #1

Updated by Go MAEDA 11 days ago

  • Tracker changed from Defect to Patch
  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the fix in r23370 and merged the fix into the stable branches in r23371 and r23372.

Actions

Also available in: Atom PDF