Skip to content

Commit 82fc7cd

Browse files
committed
Fix random CI failure due to non-deterministic sorting order
https://travis-ci.org/rails/rails/jobs/459534536#L1280
1 parent bbe1a9b commit 82fc7cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/test/cases/associations/has_many_associations_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,8 +2002,8 @@ def test_dynamic_find_should_respect_association_order_for_through
20022002
end
20032003

20042004
def test_has_many_through_respects_hash_conditions
2005-
assert_equal authors(:david).hello_posts, authors(:david).hello_posts_with_hash_conditions
2006-
assert_equal authors(:david).hello_post_comments, authors(:david).hello_post_comments_with_hash_conditions
2005+
assert_equal authors(:david).hello_posts.sort_by(&:id), authors(:david).hello_posts_with_hash_conditions.sort_by(&:id)
2006+
assert_equal authors(:david).hello_post_comments.sort_by(&:id), authors(:david).hello_post_comments_with_hash_conditions.sort_by(&:id)
20072007
end
20082008

20092009
def test_include_uses_array_include_after_loaded

0 commit comments

Comments
 (0)