From 2fdea2e535d8179cdc32e771470d6baeed81a2eb Mon Sep 17 00:00:00 2001 From: Takayuki Nakata Date: Thu, 17 Oct 2019 11:21:46 +0900 Subject: [PATCH] Fix random CI failure due to non-deterministic sorting order Reference: https://buildkite.com/rails/rails/builds/64354#206d3411-0f15-4aa4-aa25-83117ef3bcc0/1006-1017 --- activerecord/test/cases/relations_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index cda473d764..6af8b458f5 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -2057,7 +2057,7 @@ def test_locked_should_not_build_arel end def test_relation_join_method - assert_equal "Thank you for the welcome,Thank you again for the welcome", Post.first.comments.join(",") + assert_equal "Thank you for the welcome,Thank you again for the welcome", Post.first.comments.order(:id).join(",") end def test_relation_with_private_kernel_method -- GitLab