mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 04:27:53 +00:00
test: fix flaky test by adding margin for time diff (#8121)
This commit is contained in:
@@ -41,7 +41,7 @@ describe ReportingEventListener do
|
|||||||
|
|
||||||
events = account.reporting_events.where(name: 'reply_time', conversation_id: message.conversation_id)
|
events = account.reporting_events.where(name: 'reply_time', conversation_id: message.conversation_id)
|
||||||
expect(events.length).to be 1
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user