created at is flaky due to floating point imprecision

This commit is contained in:
Gustavo Maronato 2023-09-21 21:03:10 -03:00
parent 67f07b7601
commit 6aab889ed1
Signed by: maronato
SSH Key Fingerprint: SHA256:2Gw7kwMz/As+2UkR1qQ/qYYhn+WNh3FGv6ozhoRrLcs

View File

@ -538,7 +538,6 @@ func ITestCreateShortLog(t *testing.T, stg storage.Storage) {
assert.Equal(t, baseShortLog.IPAddress, shortLog.IPAddress, "Should return the same IPAddress")
assert.Equal(t, baseShortLog.UserAgent, shortLog.UserAgent, "Should return the same UserAgent")
assert.Equal(t, baseShortLog.Referer, shortLog.Referer, "Should return the same Referer")
assert.Equal(t, baseShortLog.CreatedAt.UTC(), shortLog.CreatedAt.UTC(), "Should return the same CreatedAt")
assert.NotZero(t, shortLog.ID, "Should return a non-zero ID")
assert.NotZero(t, shortLogs[1].ID, "Should return a non-zero ID")