mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 04:04:03 +00:00
As of Rails 5.1:
- Rails has built-in support for running tests within database
transactions, so Database Cleaner is no longer needed for this.
- Rails automatically shares the database connection across threads,
so transactional_capybara is no longer needed.
Changes:
- Enable `use_transactional_tests`.
- Remove transactional_capybara.
- Remove the Database Cleaner test wrapper.
This resolves:
- transactional_capybara mismanages the shared database connection,
causing the connection to falsely report as idle after the first
test. At 6 minutes (idle_timeout + reaping_frequency) into testing,
the connection is closed, causing e.g. `PG::ConnectionBad` errors.
|
||
|---|---|---|
| .. | ||
| logos | ||
| schemas | ||
| api_schema_matcher.rb | ||
| database_cleaner.rb | ||
| external_request.rb | ||
| factory_bot.rb | ||
| flash.rb | ||
| login_macros.rb | ||
| omniauth_macros.rb | ||
| save_feature_failures.rb | ||
| sidebar.rb | ||