mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Sort results to fix nondeterministic test failures
https://buildkite.com/rails/rails/builds/67891#867b2766-7984-4280-90d6-7f0412e2d239/1015-1026
This commit is contained in:
parent
dabb587cbb
commit
ddaa24ac70
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase
|
|||
post2 = Post.includes(:categories).first
|
||||
|
||||
assert_operator post.categories.length, :>, 0
|
||||
assert_equal post2.categories, post.categories
|
||||
assert_equal post2.categories.sort_by(&:id), post.categories.sort_by(&:id)
|
||||
end
|
||||
|
||||
def test_include?
|
||||
|
|
Loading…
Reference in a new issue