Commit 7fd912ae authored by Rémy Coutable's avatar Rémy Coutable

Fix spec/services/geo/repository_sync_service_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent c56c8124
...@@ -32,7 +32,8 @@ describe Geo::RepositorySyncService, services: true do ...@@ -32,7 +32,8 @@ describe Geo::RepositorySyncService, services: true do
end end
it 'releases lease' do it 'releases lease' do
expect(Gitlab::ExclusiveLease).to receive(:cancel).once.and_call_original expect(Gitlab::ExclusiveLease).to receive(:cancel).once.with(
subject.__send__(:lease_key), false).and_call_original
subject.execute subject.execute
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment