spec/loga/sidekiq6/job_logger_spec.rb in loga-2.6.0 vs spec/loga/sidekiq6/job_logger_spec.rb in loga-2.6.1
- old
+ new
@@ -62,10 +62,11 @@
'_params' => ['asd'],
}
aggregate_failures do
expect(json_line).to include(expected_body)
+ expect(json_line['_duration']).to be_a(Float)
expect(json_line['timestamp']).to be_a(Float)
expect(json_line['host']).to be_a(String)
expect(json_line['short_message']).to match(/HardWorker with jid:*/)
end
end
@@ -108,9 +109,10 @@
'_exception' => 'StandardError',
}
aggregate_failures do
expect(&failed_job).to raise_error(StandardError)
+ expect(json_line['_duration']).to be_a(Float)
expect(json_line).to include(expected_body)
expect(json_line['timestamp']).to be_a(Float)
expect(json_line['host']).to be_a(String)
expect(json_line['short_message']).to match(/HardWorker with jid:*/)
end