diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-04-10 14:21:45 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-04-10 14:21:45 +0300 |
commit | 76e7d2564d30a72604496acf8cd6fb1228905c0f (patch) | |
tree | 5eb6d4e8160058f6fe782f0480633f34e6a77ef1 /config/initializers/rspec_profiling.rb | |
parent | f1e2387e2851009cf2091ab22b3d6a70a27dfa1e (diff) |
Set profiler only for postgresql not mysql
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10156#note_26812609
Diffstat (limited to 'config/initializers/rspec_profiling.rb')
-rw-r--r-- | config/initializers/rspec_profiling.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/rspec_profiling.rb b/config/initializers/rspec_profiling.rb index 764c067c6f0..b909cc5b9a4 100644 --- a/config/initializers/rspec_profiling.rb +++ b/config/initializers/rspec_profiling.rb @@ -38,7 +38,7 @@ if Rails.env.test? end end - if ENV.has_key?('CI') + if ENV.has_key?('CI') && ENV['GITLAB_DATABASE'] == 'postgresql' RspecProfiling::VCS::Git.prepend(RspecProfilingExt::Git) RspecProfiling::Run.prepend(RspecProfilingExt::Run) end |