提交 dde113db 编写于 作者: R Ryuta Kamizono

Fix random CI failure due to non-deterministic sorting order

https://buildkite.com/rails/rails/builds/64636#dfbe4b16-0dcf-4e64-9b03-27264d5ac150/1008-1019
上级 e679a4be
......@@ -2988,7 +2988,7 @@ def test_has_many_with_out_of_range_value
def test_has_many_preloading_with_duplicate_records
posts = Post.joins(:comments).preload(:comments).order(:id).to_a
assert_equal [1, 2], posts.first.comments.map(&:id)
assert_equal [1, 2], posts.first.comments.map(&:id).sort
end
private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册