summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-07-13 16:51:37 +0200
committerRobert Speicher <rspeicher@gmail.com>2017-07-18 12:33:15 -0400
commitfc76ff1051681a7cabc1203043217b617e85f068 (patch)
treef6f77e7dfa4287452e2ca3a5dfdb1cf28a8cde50 /config
parent48b976e0973066ebf2f2ffd01b1bb4a7e9d4d040 (diff)
downloadgitlab-ce-fc76ff1051681a7cabc1203043217b617e85f068.tar.gz
Disable Rails logging in CI test environmentsrs-disable-test-log-in-ci
See https://jtway.co/speed-up-your-rails-test-suite-by-6-in-1-line-13fedb869ec4
Diffstat (limited to 'config')
-rw-r--r--config/environments/test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb
index c3b788c038e..986107150cf 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -43,4 +43,9 @@ Rails.application.configure do
config.cache_store = :null_store
config.active_job.queue_adapter = :test
+
+ if ENV['CI'] && !ENV['RAILS_ENABLE_TEST_LOG']
+ config.logger = Logger.new(nil)
+ config.log_level = :fatal
+ end
end