diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-20 12:09:02 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-20 12:09:02 +0000 |
commit | 98252e0dd60cbcb316231085e206d9872f243b8a (patch) | |
tree | 304021f4190aabcc74f1359866c0efff84995729 /config/environments/test.rb | |
parent | 2ee5991b42717969af93cb30d863aafab04dff8a (diff) | |
download | gitlab-ce-98252e0dd60cbcb316231085e206d9872f243b8a.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/environments/test.rb')
-rw-r--r-- | config/environments/test.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb index 153d16e4e55..d8235c6220c 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -10,11 +10,8 @@ Rails.application.configure do # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! - # Enabling caching of classes slows start-up time because all controllers - # are loaded at initialization, but it reduces memory and load because files - # are not reloaded with every request. For example, caching is not necessary - # for loading database migrations but useful for handling Knapsack specs. - config.cache_classes = ENV['CACHE_CLASSES'] == 'true' + # Code doesn't change in CI so we don't need code-reloading + config.cache_classes = !!ENV['CI'] # Configure static asset server for tests with Cache-Control for performance config.assets.compile = false if ENV['CI'] |