@@ -51,7 +51,7 @@ RSpec.describe ExclusiveLeaseGuard, :clean_gitlab_redis_shared_state do
it'does not call internal_method but logs error',:aggregate_failuresdo
expect(subject).not_toreceive(:internal_method)
expect(Gitlab::AppLogger).toreceive(:error).with("Cannot obtain an exclusive lease for #{subject.class.name}. There must be another instance already in execution.")
expect(Gitlab::AppLogger).toreceive(:error).with("Cannot obtain an exclusive lease for #{subject.class.name}. There must be another instance already in execution.")
@@ -139,7 +139,7 @@ RSpec.describe Projects::GitDeduplicationService do
end
it'fails when a lease is already out'do
expect(service).toreceive(:log_error).with("Cannot obtain an exclusive lease for #{service.class.name}. There must be another instance already in execution.")
expect(service).toreceive(:log_error).with("Cannot obtain an exclusive lease for #{service.class.name}. There must be another instance already in execution.")