diff options
author | Stan Hu <stanhu@gmail.com> | 2017-05-19 17:17:47 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-05-19 17:17:47 +0300 |
commit | 9d29eb7e292067fb980b4ca97fc6c3edac1dccec (patch) | |
tree | d9e1d2fccab2dab90d1fed9d47a30c402921e1ca /spec | |
parent | 9bf95ddd83fd3ef1216952692ff789d7c5688578 (diff) | |
parent | 29c268ee4e21470cb7bbf13ce16b527b516225cb (diff) |
Merge branch '31933-improve-rspec-profiling-enabling' into 'master'
Enable RSpec profiling only if RSPEC_PROFILING_POSTGRES_URL is not empty
Closes #31933
See merge request !11543
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e2d5928e5b2..a58f4e664b7 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -10,7 +10,7 @@ require 'shoulda/matchers' require 'rspec/retry' rspec_profiling_is_configured = - ENV['RSPEC_PROFILING_POSTGRES_URL'] || + ENV['RSPEC_PROFILING_POSTGRES_URL'].present? || ENV['RSPEC_PROFILING'] branch_can_be_profiled = ENV['GITLAB_DATABASE'] == 'postgresql' && |