1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Address intermittent CI failure due to non-determined sort order

https://buildkite.com/rails/rails/builds/75259#9d1a409b-e2b0-4d0b-a38e-71cfa715c779/1068-1079
This commit is contained in:
Ryuta Kamizono 2021-02-21 14:07:17 +09:00
parent 146f0e7847
commit bf594186b8
2 changed files with 4 additions and 4 deletions

View file

@ -16,8 +16,8 @@ class InnerJoinAssociationTest < ActiveRecord::TestCase
:taggings, :tags, :people
def test_construct_finder_sql_applies_aliases_tables_on_association_conditions
result = Author.joins(:thinking_posts, :welcome_posts).to_a
assert_equal authors(:david), result.first
result = Author.joins(:thinking_posts, :welcome_posts).first
assert_equal authors(:david), result
end
def test_construct_finder_sql_does_not_table_name_collide_on_duplicate_associations

View file

@ -22,8 +22,8 @@ class LeftOuterJoinAssociationTest < ActiveRecord::TestCase
end
def test_construct_finder_sql_applies_aliases_tables_on_association_conditions
result = Author.left_outer_joins(:thinking_posts, :welcome_posts).to_a
assert_equal authors(:david), result.first
result = Author.left_outer_joins(:thinking_posts, :welcome_posts).first
assert_equal authors(:david), result
end
def test_construct_finder_sql_does_not_table_name_collide_on_duplicate_associations