Skip to content

Commit

Permalink
Fix 1 day
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikspang committed Oct 28, 2024
1 parent 09429a9 commit 265307a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 + 1.days)

expect(transport.events.count).to eq(2)

Expand All @@ -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(1.days.to_i * 1000)
end
end

Expand Down

0 comments on commit 265307a

Please sign in to comment.