Skip to content

Commit

Permalink
Dont use .day helper
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikspang committed Oct 28, 2024
1 parent ea1fa45 commit 5e000c6
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 + 86400)

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(86400000)
end
end

Expand Down

0 comments on commit 5e000c6

Please sign in to comment.