From e06b6571e9fc4670bf8411e596cf5eebfe65d02c Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Fri, 11 Oct 2019 22:01:20 +0900 Subject: [PATCH] Fix random CI failure due to non-deterministic sorting order https://buildkite.com/rails/rails/builds/64281#b6f8859b-ee39-40d7-8f0a-d0ba78efbf03/1001-1012 --- activerecord/test/cases/calculations_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/test/cases/calculations_test.rb b/activerecord/test/cases/calculations_test.rb index f2acb8373c..1b4d732c41 100644 --- a/activerecord/test/cases/calculations_test.rb +++ b/activerecord/test/cases/calculations_test.rb @@ -733,7 +733,7 @@ def test_pluck_with_includes_offset end def test_pluck_with_join - assert_equal [[2, 2], [4, 4]], Reply.includes(:topic).pluck(:id, :"topics.id") + assert_equal [[2, 2], [4, 4]], Reply.includes(:topic).order(:id).pluck(:id, :"topics.id") end def test_group_by_with_order_by_virtual_count_attribute -- GitLab