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
Same here, I have lots of workarounds because of datetimes. Because when it get serialized the timezone can change, although the absolute value is still the same (.Equal() returns true, but assert.Equal returns false)
Given two times that are equal using their
.Equal()
method, they fail usingassert.Equal()
.Proposed solution
Instead of using
reflect.DeepEqual()
, first check if we are asserting times, and then use their.Equal()
method.The text was updated successfully, but these errors were encountered: