From 5e000c67e1f4bc508d0edde0e56306f3dd833966 Mon Sep 17 00:00:00 2001 From: Frederik Erbs Spang Thomsen Date: Mon, 28 Oct 2024 23:36:55 +0100 Subject: [PATCH] Dont use .day helper --- .../spec/sentry/sidekiq/sentry_context_middleware_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sentry-sidekiq/spec/sentry/sidekiq/sentry_context_middleware_spec.rb b/sentry-sidekiq/spec/sentry/sidekiq/sentry_context_middleware_spec.rb index 276bfc4e3..ea930ee4e 100644 --- a/sentry-sidekiq/spec/sentry/sidekiq/sentry_context_middleware_spec.rb +++ b/sentry-sidekiq/spec/sentry/sidekiq/sentry_context_middleware_spec.rb @@ -69,7 +69,7 @@ it "adds a queue.process spans" do Timecop.freeze do execute_worker(processor, HappyWorker) - execute_worker(processor, HappyWorker, jid: '123456', timecop_delay: Time.now + 1.day) + execute_worker(processor, HappyWorker, jid: '123456', timecop_delay: Time.now + 86400) expect(transport.events.count).to eq(2) @@ -86,7 +86,7 @@ expect(transaction.spans.count).to eq(0) expect(transaction.contexts[:trace][:data]['messaging.message.id']).to eq('123456') # Explicitly set above. expect(transaction.contexts[:trace][:data]['messaging.destination.name']).to eq('default') - expect(transaction.contexts[:trace][:data]['messaging.message.receive.latency']).to eq(1.day.to_i * 1000) + expect(transaction.contexts[:trace][:data]['messaging.message.receive.latency']).to eq(86400000) end end