test: fix flaky test by adding margin for time diff (#8121)
This commit is contained in:
parent
3b0788c3be
commit
e55fe33f1b
@ -41,7 +41,7 @@ describe ReportingEventListener do
|
||||
|
||||
events = account.reporting_events.where(name: 'reply_time', conversation_id: message.conversation_id)
|
||||
expect(events.length).to be 1
|
||||
expect(events.first.value).to eq 7200
|
||||
expect(events.first.value).to be_within(1).of(7200)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user