Project

General

Profile

Actions

Patch #42572

closed

Fix random test failure in MemberTest#test_update_roles_with_inherited_roles due to non-deterministic ordering

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

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

0%

Estimated time:

Description

The attached patch fixes the following test failure that occurs randomly.

Failure:
MemberTest#test_update_roles_with_inherited_roles [test/unit/member_test.rb:78]:
Expected: [[1, 18], [1, 20], [2, 22]]
  Actual: [[1, 20], [2, 22], [1, 18]]

bin/rails test test/unit/member_test.rb:61

Files


Related issues

Related to Redmine - Defect #42106: Member roles are incorrectly added when a user's memberships are updatedClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF