diff options
author | John Cai <jcai@gitlab.com> | 2019-07-10 14:36:49 -0700 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2019-07-16 13:54:01 -0700 |
commit | 8765d537373679ccbb219ee400c277384972c742 (patch) | |
tree | 1e3da00083accf8077e55731ef9904c0fdd09075 /spec/spec_helper.rb | |
parent | 3d9dc7dbf846f693c8c38667388950d7a14c2f0a (diff) | |
download | gitlab-ce-8765d537373679ccbb219ee400c277384972c742.tar.gz |
Wrap rugged calls with access disk blockjc-wrap-rugged-calls-with-disk-access
Whenever we use the rugged implementation, we are going straight to disk
so we want to bypass the disk access check.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 95e0d8858b9..978158192d9 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -134,6 +134,8 @@ RSpec.configure do |config| allow(Feature).to receive(:enabled?).with(flag).and_return(enabled) end + allow(Gitlab::GitalyClient).to receive(:can_use_disk?).and_return(enabled) + # The following can be removed when we remove the staged rollout strategy # and we can just enable it using instance wide settings # (ie. ApplicationSetting#auto_devops_enabled) |