diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-31 09:07:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-31 09:07:50 +0300 |
commit | 92077e0f8d70c70a908395808b16f98ecd3a5fcd (patch) | |
tree | efb011b2b7e96c2a8a0e7877c0966ab70014ebee /spec/lib/gitlab/cleanup | |
parent | 83a3209c3f8e5bc055acf80f3440335d2b97133b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/cleanup')
-rw-r--r-- | spec/lib/gitlab/cleanup/orphan_job_artifact_files_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/cleanup/orphan_job_artifact_files_spec.rb b/spec/lib/gitlab/cleanup/orphan_job_artifact_files_spec.rb index 75ef75fccc9..966c4c8b2fb 100644 --- a/spec/lib/gitlab/cleanup/orphan_job_artifact_files_spec.rb +++ b/spec/lib/gitlab/cleanup/orphan_job_artifact_files_spec.rb @@ -28,6 +28,12 @@ describe Gitlab::Cleanup::OrphanJobArtifactFiles do expect { cleanup.run! }.to raise_error('Invalid niceness') end + it 'passes correct arguments to ionice' do + allow(Gitlab::Utils).to receive(:which).with('ionice').and_return('/fake/ionice') + expect(Open3).to receive(:popen3).with('/fake/ionice', '-c', any_args) + cleanup.run! + end + it 'finds artifacts on disk' do artifact = create(:ci_job_artifact, :archive) |