diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-26 18:09:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-26 18:09:30 +0300 |
commit | 2eaa60e4555bb11ad5c0af905217f0fa61cf7cc9 (patch) | |
tree | 0b0096203355150802fb8f7f4fe208b41b5bed68 /spec/services/projects/hashed_storage/rollback_repository_service_spec.rb | |
parent | 142890d5bbefa7b1e1b30f263f9ad67d9d496d29 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/projects/hashed_storage/rollback_repository_service_spec.rb')
-rw-r--r-- | spec/services/projects/hashed_storage/rollback_repository_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/projects/hashed_storage/rollback_repository_service_spec.rb b/spec/services/projects/hashed_storage/rollback_repository_service_spec.rb index 492eb0956aa..af128a532b9 100644 --- a/spec/services/projects/hashed_storage/rollback_repository_service_spec.rb +++ b/spec/services/projects/hashed_storage/rollback_repository_service_spec.rb @@ -28,7 +28,7 @@ RSpec.describe Projects::HashedStorage::RollbackRepositoryService, :clean_gitlab end it 'fails when a git operation is in progress' do - allow(project).to receive(:repo_reference_count) { 1 } + allow(project).to receive(:git_transfer_in_progress?) { true } expect { service.execute }.to raise_error(Projects::HashedStorage::RepositoryInUseError) end |