From 6aab889ed1a5e20fd3cc0cec549c234e0865bd4c Mon Sep 17 00:00:00 2001 From: Gustavo Maronato Date: Thu, 21 Sep 2023 21:03:10 -0300 Subject: [PATCH] created at is flaky due to floating point imprecision --- internal/storage/testing/storagetesting.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/storage/testing/storagetesting.go b/internal/storage/testing/storagetesting.go index e7c74c2..a984c07 100644 --- a/internal/storage/testing/storagetesting.go +++ b/internal/storage/testing/storagetesting.go @@ -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")