Commit 0a60b32b authored by Ash McKenzie's avatar Ash McKenzie Committed by Douglas Barbosa Alexandre

Misc spec tidy up

parent 8e20e899
......@@ -40,11 +40,9 @@ module Gitlab
def get_sidekiq_job_id
context_data = Thread.current[:sidekiq_context]&.first
return unless context_data
index = context_data.index('JID-')
return unless index
context_data[index + 4..-1]
......
......@@ -29,9 +29,10 @@ describe Geo::ContainerRepositoryUpdatedEventStore do
subject = described_class.new(nil)
expected_message = {
class: described_class.name,
message: 'Container repository updated event could not be created',
error: "Validation failed: Container repository can't be blank"
class: described_class.name,
host: 'localhost',
message: 'Container repository updated event could not be created',
error: "Validation failed: Container repository can't be blank"
}
expect(Gitlab::Geo::Logger).to receive(:error).with(expected_message).and_call_original
......
......@@ -39,7 +39,6 @@ describe Geo::JobArtifactDeletedEventStore do
class: "Geo::JobArtifactDeletedEventStore",
host: "localhost",
job_artifact_id: invalid_job_artifact.id,
file_path: nil,
project_id: project.id,
project_path: project.full_path,
storage_version: project.storage_version,
......
......@@ -39,7 +39,6 @@ describe Geo::LfsObjectDeletedEventStore do
class: "Geo::LfsObjectDeletedEventStore",
host: "localhost",
lfs_object_id: invalid_lfs_object.id,
file_path: nil,
message: "Lfs object deleted event could not be created",
error: "Validation failed: File path can't be blank"
}
......
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