You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Payload assert : nondeterministic error with timestamps #3
DateTime objects are not always converted to the same string in the payload, there is a 1/1000sec difference which causes nondeterministic errors when validating timestamps
Example
Expected JSON payload to have key 'ends_at' ==
"2017-07-16T11:55:12.241+02:00"
but was
"2017-07-16T11:55:12.242+02:00"
This failure happens roughly 1/2 of the time, might be a rounding problem.
Activity
Startouf commentedon Jul 17, 2017
As discussed in Slack, this seems to be related to Ruby's DateTime implementation.
When using Mongoid's
type: Timein the models the error is gone.