diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2019-03-26 02:51:03 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2019-03-26 02:51:03 +0000 |
commit | 4dd3b2bd9a16431d2c90edcc474006d6af467f9a (patch) | |
tree | f4e87d0cb018bd1bef3c4821a314d2b48da6ad60 /actioncable/test/connection | |
parent | 15ca8ad0c1e94d11d0deb02535bc286e077d43ce (diff) | |
download | rails-4dd3b2bd9a16431d2c90edcc474006d6af467f9a.tar.gz rails-4dd3b2bd9a16431d2c90edcc474006d6af467f9a.tar.bz2 rails-4dd3b2bd9a16431d2c90edcc474006d6af467f9a.zip |
Use `assert_queries(0)` instead of `assert_no_queries` to ignore metadata queries
Fix #35665
```ruby
$ ARCONN=mysql2 bin/test test/cases/scoping/named_scoping_test.rb test/cases/tasks/database_tasks_test.rb test/cases/associations/cascaded_eager_loading_test.rb test/cases/associations/eager_singularization_test.rb -n "/^(?:NamedScopingTest#(?:test_many_should_not_fire_query_if_scope_loaded)|ActiveRecord::DatabaseTasksDumpSchemaCacheTest#(?:test_dump_schema_cache)|CascadedEagerLoadingTest#(?:test_eager_association_loading_with_has_many_sti_and_subclasses)|EagerSingularizationTest#(?:test_eager_no_extra_singularization_has_many_through_belongs_to))$/" --seed 16818
Using mysql2
Run options: -n "/^(?:NamedScopingTest#(?:test_many_should_not_fire_query_if_scope_loaded)|ActiveRecord::DatabaseTasksDumpSchemaCacheTest#(?:test_dump_schema_cache)|CascadedEagerLoadingTest#(?:test_eager_association_loading_with_has_many_sti_and_subclasses)|EagerSingularizationTest#(?:test_eager_no_extra_singularization_has_many_through_belongs_to))$/" --seed 16818
...F
Failure:
CascadedEagerLoadingTest#test_eager_association_loading_with_has_many_sti_and_subclasses [/home/yahonda/git/rails/activerecord/test/cases/associations/cascaded_eager_loading_test.rb:124]:
1 instead of 0 queries were executed.
Queries:
SHOW FULL FIELDS FROM `topics`.
Expected: 0
Actual: 1
bin/test test/cases/associations/cascaded_eager_loading_test.rb:119
Finished in 6.894609s, 0.5802 runs/s, 1.0153 assertions/s.
4 runs, 7 assertions, 1 failures, 0 errors, 0 skips
$
```
Diffstat (limited to 'actioncable/test/connection')
0 files changed, 0 insertions, 0 deletions