From 94b68877456f93144c9f2784d381a35d20ade42c Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Thu, 17 Oct 2019 11:40:48 +0900 Subject: [PATCH] Merge pull request #37489 from giraffate/fix_random_ci_failure_due_to_non-deterministic_sorting_order Fix random CI failure due to non-deterministic sorting order --- 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 c73956b470..7c6b47e42a 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -1991,7 +1991,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