Skip to content

Commit

Permalink
Merge pull request #30133 from kamipo/fix_random_ci_failure
Browse files Browse the repository at this point in the history
Fix random CI failure due to non-deterministic sorting order
  • Loading branch information
rafaelfranca committed Aug 8, 2017
2 parents 507f3ef + 75cfb3d commit 7e64d6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ def test_has_many_association_through_a_has_many_association_to_self
sarah = Person.create!(first_name: "Sarah", primary_contact_id: people(:susan).id, gender: "F", number1_fan_id: 1)
john = Person.create!(first_name: "John", primary_contact_id: sarah.id, gender: "M", number1_fan_id: 1)
assert_equal sarah.agents, [john]
assert_equal people(:susan).agents.flat_map(&:agents), people(:susan).agents_of_agents
assert_equal people(:susan).agents.flat_map(&:agents).sort, people(:susan).agents_of_agents.sort
end

def test_associate_existing_with_nonstandard_primary_key_on_belongs_to
Expand Down

0 comments on commit 7e64d6d

Please sign in to comment.