I have some database functions which I'm testing (to make sure my queries etc. work) -- in them, I'm de/serialising records (via Database.Esqueleto.Experimental) and these contain values of type UTCTime
(and Maybe UTCTime
, etc.).
The problem is that I get these sorts of errors in my tests:
1) Vulture.Database.EventRepository.addEvents correctly sets the event properties
expected: 2023-05-06 21:52:13.441270819 UTC
but got: 2023-05-06 21:52:13.441271 UTC
This is sort of annoying, but I don't know how to either manipulate UTCTime
values to change the precision, or to change the way the equality works here.