diff options
| author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-09-23 09:11:45 +0000 |
|---|---|---|
| committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-09-23 09:11:45 +0000 |
| commit | 63c74eda71528edb0872f22656fe4c0567cb31d3 (patch) | |
| tree | 043920023bb71abf311eca44f62b1443bf63a859 /spec | |
| parent | 894d8c16866b58e74791c933968a5a08c7aeb901 (diff) | |
| parent | a878cf13734bfaa0f1f0db187a4a4aa436057be5 (diff) | |
| download | gitlab-shell-63c74eda71528edb0872f22656fe4c0567cb31d3.tar.gz | |
Merge branch 'ionice-mv' into 'master'
Set a low IO priority for storage moves to lower performance impact
See merge request !92
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/gitlab_projects_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/gitlab_projects_spec.rb b/spec/gitlab_projects_spec.rb index 19646e3..bc615d4 100644 --- a/spec/gitlab_projects_spec.rb +++ b/spec/gitlab_projects_spec.rb @@ -212,6 +212,7 @@ describe GitlabProjects do before do FileUtils.mkdir_p(tmp_repo_path) + FileUtils.mkdir_p(File.join(tmp_repo_path, 'hooks')) # Add some contents to copy FileUtils.mkdir_p(alternative_storage_path) allow_any_instance_of(GitlabReferenceCounter).to receive(:value).and_return(0) end @@ -222,6 +223,8 @@ describe GitlabProjects do File.exists?(tmp_repo_path).should be_true gl_projects.exec File.exists?(new_repo_path).should be_true + # Make sure the target directory isn't empty (i.e. contents were copied) + FileUtils.cd(new_repo_path) { Dir['**/*'].length.should_not be(0) } end it "should fail if no destination path is provided" do |
