diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-12-10 11:58:41 +0900 |
---|---|---|
committer | Yuji Yaginuma <yuuji.yaginuma@gmail.com> | 2017-12-10 13:00:12 +0900 |
commit | cf0fcbe7f6fd52b3455af99b61ef2c40e6a0062e (patch) | |
tree | bfe79dee0868f4a4d656d2a9bbfdb68ab9ac5d0d /activerecord/lib/active_record | |
parent | 1b24fb213b820ebca29eb1d38efb07a410c7afaa (diff) | |
download | rails-cf0fcbe7f6fd52b3455af99b61ef2c40e6a0062e.tar.gz rails-cf0fcbe7f6fd52b3455af99b61ef2c40e6a0062e.tar.bz2 rails-cf0fcbe7f6fd52b3455af99b61ef2c40e6a0062e.zip |
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
Diffstat (limited to 'activerecord/lib/active_record')
0 files changed, 0 insertions, 0 deletions