diff options
author | 2022-06-19 17:10:24 +0200 | |
---|---|---|
committer | 2022-06-19 17:10:24 +0200 | |
commit | 610395d5a55ef0b82b7faaf70127c693d1abd58a (patch) | |
tree | 711b1ced129d507c7b105844ea5e6a420387f824 /internal/federation/dereferencing/status_test.go | |
parent | [packaging] Packaging updates (#655) (diff) | |
download | gotosocial-610395d5a55ef0b82b7faaf70127c693d1abd58a.tar.xz |
[chore] make tests more cacheable by avoiding time.Now() (#656)
Diffstat (limited to 'internal/federation/dereferencing/status_test.go')
-rw-r--r-- | internal/federation/dereferencing/status_test.go | 3 |
1 files changed, 0 insertions, 3 deletions
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) } |