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
yuuji.yaginuma cf0fcbe7f6 Reset schema cache after test
Currently, `test_copy_table_with_composite_primary_keys` test fails
depending on execution order. The reproduction step is as follows.

```
$ ARCONN=sqlite3_mem bin/test -w -n "/^(?:CalculationsTest#(?:test_#skip_query_cache\\!_for_a_simple_calculation)|PrimaryKeyAnyTypeTest#(?:test_any_type_primary_key)|ActiveRecord::ConnectionAdapters::SQLite3AdapterTest#(?:test_copy_table_with_composite_primary_keys))$/" --seed 41545
```

The column info is cached by `PrimaryKeyAnyTypeTest#test_any_type_primary_key`,
and the test seems to have failed due to the influence.
So clear cache after testing so as not to affect other tests.

Related: https://travis-ci.org/rails/rails/jobs/313730163#L1788
2017-12-10 13:00:12 +09:00
..
active_record/connection_adapters Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
assets
cases Reset schema cache after test 2017-12-10 13:00:12 +09:00
fixtures Set counter caches to correct values in fixtures 2017-11-08 20:45:43 +02:00
migrations Unify the internal source control .keep file name 2017-08-24 13:40:26 +09:00
models Inverse instance should not be reloaded during autosave if called in validation 2017-11-27 09:41:36 +05:30
schema Refactor length, order, and opclass index options dumping 2017-12-03 05:01:41 +09:00
support Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
.gitignore
config.example.yml
config.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00