From 610395d5a55ef0b82b7faaf70127c693d1abd58a Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 19 Jun 2022 17:10:24 +0200 Subject: [chore] make tests more cacheable by avoiding time.Now() (#656) --- internal/federation/dereferencing/status_test.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'internal/federation/dereferencing/status_test.go') diff --git a/internal/federation/dereferencing/status_test.go b/internal/federation/dereferencing/status_test.go index ab6efad38..6f6c26145 100644 --- a/internal/federation/dereferencing/status_test.go +++ b/internal/federation/dereferencing/status_test.go @@ -21,7 +21,6 @@ package dereferencing_test import ( "context" "testing" - "time" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" @@ -122,8 +121,6 @@ func (suite *StatusTestSuite) TestDereferenceStatusWithMention() { suite.Equal(account.ID, m.OriginAccountID) suite.Equal(fetchingAccount.ID, m.TargetAccountID) suite.Equal(account.URI, m.OriginAccountURI) - suite.WithinDuration(time.Now(), m.CreatedAt, 5*time.Minute) - suite.WithinDuration(time.Now(), m.UpdatedAt, 5*time.Minute) suite.False(m.Silent) } -- cgit v1.2.3