diff options
author | John Cai <jcai@gitlab.com> | 2019-06-14 18:22:26 -0700 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2019-07-05 10:31:47 -0700 |
commit | 8152e1aa4a039056d3010180051e6935b20d3656 (patch) | |
tree | d039df3af3556e12005541b87930b54c6a04e3e5 /spec/lib/gitlab/cache | |
parent | 50441577f0d24fe66ad1d59879f10315b54946c4 (diff) | |
download | gitlab-ce-8152e1aa4a039056d3010180051e6935b20d3656.tar.gz |
Use Rugged if we detect storage is NFS and we can access the diskjc-detect-nfs-for-rugged
Add a module we use as a singleton to determine whether or not rails is
able to access the disk
Diffstat (limited to 'spec/lib/gitlab/cache')
-rw-r--r-- | spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb b/spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb index 483c5ea9cff..972dd7e0d2b 100644 --- a/spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb +++ b/spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb @@ -26,6 +26,7 @@ describe Gitlab::Cache::Ci::ProjectPipelineStatus, :clean_gitlab_redis_cache do end it 'loads 10 projects without hitting Gitaly call limit', :request_store do + allow(Gitlab::GitalyClient).to receive(:can_access_disk?).and_return(false) projects = Gitlab::GitalyClient.allow_n_plus_1_calls do (1..10).map { create(:project, :repository) } end |