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