# FIXME: We will need to find a pipeline where the $RSPEC_PACKED_TESTS_MAPPING_PATH.gz actually exists (Crystalball only runs every two-hours, but the `update-tests-metadata` runs for all `master` pipelines...).
# if [[ ! -f "${RSPEC_PACKED_TESTS_MAPPING_PATH}" ]]; then
@@ -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.lease_key}. 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 #{lease_key}. There must be another instance already in execution.")