Only use Gitaly catfile_cache_size=5 in test
This commit is contained in:
parent
e5aba4b153
commit
2d4447808d
|
@ -43,7 +43,13 @@ module Gitlab
|
|||
config[:'gitaly-ruby'] = { dir: File.join(gitaly_dir, 'ruby') } if gitaly_ruby
|
||||
config[:'gitlab-shell'] = { dir: Gitlab.config.gitlab_shell.path }
|
||||
config[:bin_dir] = Gitlab.config.gitaly.client_path
|
||||
|
||||
if Rails.env.test?
|
||||
# Compared to production, tests run in constrained environments. This
|
||||
# number is meant to grow with the number of concurrent rails requests /
|
||||
# sidekiq jobs, and concurrency will be low anyway in test.
|
||||
config[:git] = { catfile_cache_size: 5 }
|
||||
end
|
||||
|
||||
TomlRB.dump(config)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue