1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases
Ryuta Kamizono 75cfb3dbdb Fix random CI failure due to non-deterministic sorting order
It should be sorted to be deterministic executed result.

```
% bundle exec rake test_postgresql --verbose TESTOPTS="--seed=52812"

(snip)

Failure:
HasManyThroughAssociationsTest#test_has_many_association_through_a_has_many_association_to_self [/Users/kamipo/src/github.com/rails/rails/activerecord/test/cases/associations/has_many_through_associations_test.rb:820]:
--- expected
+++ actual
@@ -1 +1 @@
-[#<Person id: 85, primary_contact_id: 84, gender: "M", number1_fan_id: 1, lock_version: 0, comments: nil, followers_count: 0, friends_too_count: 0, best_friend_id: nil, best_friend_of_id: nil, insures: 0, born_at: nil, created_at: "2017-08-08 07:33:52", updated_at: "2017-08-08 07:33:52", first_name: "John">, #<Person id: 1, primary_contact_id: 2, gender: "M", number1_fan_id: 3, lock_version: 0, comments: nil, followers_count: 1, friends_too_count: 1, best_friend_id: nil, best_friend_of_id: nil, insures: 0, born_at: nil, created_at: "2017-08-08 07:33:49", updated_at: "2017-08-08 07:33:49", first_name: "Michael">, #<Person id: 3, primary_contact_id: 2, gender: "F", number1_fan_id: 1, lock_version: 0, comments: nil, followers_count: 1, friends_too_count: 1, best_friend_id: nil, best_friend_of_id: nil, insures: 0, born_at: nil, created_at: "2017-08-08 07:33:49", updated_at: "2017-08-08 07:33:49", first_name: "Susan">]
+#<ActiveRecord::Associations::CollectionProxy [#<Person id: 1, primary_contact_id: 2, gender: "M", number1_fan_id: 3, lock_version: 0, comments: nil, followers_count: 1, friends_too_count: 1, best_friend_id: nil, best_friend_of_id: nil, insures: 0, born_at: nil, created_at: "2017-08-08 07:33:49", updated_at: "2017-08-08 07:33:49", first_name: "Michael">, #<Person id: 3, primary_contact_id: 2, gender: "F", number1_fan_id: 1, lock_version: 0, comments: nil, followers_count: 1, friends_too_count: 1, best_friend_id: nil, best_friend_of_id: nil, insures: 0, born_at: nil, created_at: "2017-08-08 07:33:49", updated_at: "2017-08-08 07:33:49", first_name: "Susan">, #<Person id: 85, primary_contact_id: 84, gender: "M", number1_fan_id: 1, lock_version: 0, comments: nil, followers_count: 0, friends_too_count: 0, best_friend_id: nil, best_friend_of_id: nil, insures: 0, born_at: nil, created_at: "2017-08-08 07:33:52", updated_at: "2017-08-08 07:33:52", first_name: "John">]>
```
2017-08-08 17:54:42 +09:00
..
adapters Merge pull request #29520 from kirs/serialize-vs-postgres-native-column 2017-08-04 18:05:00 -04:00
associations Fix random CI failure due to non-deterministic sorting order 2017-08-08 17:54:42 +09:00
attribute_methods Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
coders Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
connection_adapters Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
connection_specification Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
fixture_set Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
migration Fix test_add_column_with_timestamp_type when using Oracle 2017-07-25 13:04:28 +09:00
relation Edits following the reviews 2017-07-28 17:53:50 -04:00
scoping Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
tasks Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
type Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
validations Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
adapter_test.rb Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
aggregations_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
ar_schema_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
associations_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
attribute_decorators_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
attribute_methods_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
attribute_set_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
attribute_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
attributes_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
autosave_association_test.rb Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
base_test.rb Remove duplicated assertion in test_count_with_join 2017-07-24 13:56:02 +09:00
batches_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
binary_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
bind_parameter_test.rb Refactor Active Record to let Arel manage bind params 2017-07-24 09:07:24 -04:00
cache_key_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
calculations_test.rb Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
callbacks_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
clone_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
collection_cache_key_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
column_alias_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
column_definition_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
comment_test.rb Remove redundant unless current_adapter?(:OracleAdapter) 2017-07-28 17:26:41 +09:00
connection_management_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
connection_pool_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
core_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
counter_cache_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
custom_locking_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
database_statements_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
date_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
date_time_precision_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
date_time_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
defaults_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
dirty_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
disconnected_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
dup_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
enum_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
errors_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
explain_subscriber_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
explain_test.rb Merge pull request #29732 from kirs/frozen-activerecord 2017-07-21 14:36:30 -04:00
finder_respond_to_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
finder_test.rb Merge pull request #29842 from kamipo/fix_find_by_with_range 2017-08-02 20:31:22 +09:30
fixtures_test.rb Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
forbidden_attributes_protection_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
habtm_destroy_order_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
helper.rb Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
hot_compatibility_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
i18n_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
inheritance_test.rb Refactor Active Record to let Arel manage bind params 2017-07-24 09:07:24 -04:00
integration_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
invalid_connection_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
invertible_migration_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
json_attribute_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
json_serialization_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
json_shared_test_cases.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
locking_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
log_subscriber_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
migration_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
migrator_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
mixin_test.rb Merge pull request #29860 from georgeclaghorn/travel-back-automatically 2017-07-24 01:01:25 -04:00
modules_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
multiparameter_attributes_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
multiple_db_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
nested_attributes_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
nested_attributes_with_callbacks_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
null_relation_test.rb Reset column information after schema changed 2017-07-20 22:43:13 +03:00
numeric_data_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
persistence_test.rb Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
pooled_connections_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
primary_keys_test.rb Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
query_cache_test.rb Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
quoting_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
readonly_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
reaper_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
reflection_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
relation_test.rb Relation::Merger should not fill values with empty values 2017-07-25 03:11:56 +09:00
relations_test.rb Refactor Active Record to let Arel manage bind params 2017-07-24 09:07:24 -04:00
reload_models_test.rb Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
reserved_word_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
result_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
sanitize_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
schema_dumper_test.rb Merge pull request #29768 from janpieper/sort-enabled-extensions-in-dump 2017-07-22 11:04:52 -04:00
schema_loading_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
secure_token_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
serialization_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
serialized_attribute_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
statement_cache_test.rb Passing klass to StatementCache.new 2017-08-04 02:27:50 +09:00
store_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
suppressor_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
test_case.rb Merge pull request #29732 from kirs/frozen-activerecord 2017-07-21 14:36:30 -04:00
test_fixtures_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
time_precision_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
timestamp_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
touch_later_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
transaction_callbacks_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
transaction_isolation_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
transactions_test.rb Merge pull request #29724 from eugeneius/sync_primary_key 2017-08-02 17:21:07 +09:30
type_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
types_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
unconnected_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
validations_repair_helper.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
validations_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
view_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
yaml_serialization_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00