diff options
author | Stan Hu <stanhu@gmail.com> | 2017-07-05 17:42:17 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-07-05 17:42:17 +0300 |
commit | 416c67541f1bafb129fdaed33dc2d94e2c21a718 (patch) | |
tree | 643ed40901d1a6b686fcbbb319e2ba1c2bcc8529 /config/initializers | |
parent | 5af1fcd6f329858d757bab0d67cb50af6c820160 (diff) |
Disable Flipper memoizer in tests to avoid transient failures
Closes #34278
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/flipper.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/initializers/flipper.rb b/config/initializers/flipper.rb index 0fee832788d..8ec9613a4b7 100644 --- a/config/initializers/flipper.rb +++ b/config/initializers/flipper.rb @@ -1,4 +1,6 @@ require 'flipper/middleware/memoizer' -Rails.application.config.middleware.use Flipper::Middleware::Memoizer, - lambda { Feature.flipper } +unless Rails.env.test? + Rails.application.config.middleware.use Flipper::Middleware::Memoizer, + lambda { Feature.flipper } +end |