Skip to content

Commit bf59418

Browse files
committed
Address intermittent CI failure due to non-determined sort order
https://buildkite.com/rails/rails/builds/75259#9d1a409b-e2b0-4d0b-a38e-71cfa715c779/1068-1079
1 parent 146f0e7 commit bf59418

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

activerecord/test/cases/associations/inner_join_association_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class InnerJoinAssociationTest < ActiveRecord::TestCase
1616
:taggings, :tags, :people
1717

1818
def test_construct_finder_sql_applies_aliases_tables_on_association_conditions
19-
result = Author.joins(:thinking_posts, :welcome_posts).to_a
20-
assert_equal authors(:david), result.first
19+
result = Author.joins(:thinking_posts, :welcome_posts).first
20+
assert_equal authors(:david), result
2121
end
2222

2323
def test_construct_finder_sql_does_not_table_name_collide_on_duplicate_associations

activerecord/test/cases/associations/left_outer_join_association_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def test_merging_multiple_left_joins_from_different_associations
2222
end
2323

2424
def test_construct_finder_sql_applies_aliases_tables_on_association_conditions
25-
result = Author.left_outer_joins(:thinking_posts, :welcome_posts).to_a
26-
assert_equal authors(:david), result.first
25+
result = Author.left_outer_joins(:thinking_posts, :welcome_posts).first
26+
assert_equal authors(:david), result
2727
end
2828

2929
def test_construct_finder_sql_does_not_table_name_collide_on_duplicate_associations

0 commit comments

Comments
 (0)