diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/api/client/admin/mediacleanup_test.go | 4 | ||||
| -rw-r--r-- | internal/federation/dereferencing/status_test.go | 3 | 
2 files changed, 2 insertions, 5 deletions
diff --git a/internal/api/client/admin/mediacleanup_test.go b/internal/api/client/admin/mediacleanup_test.go index 449777541..50f23b2f0 100644 --- a/internal/api/client/admin/mediacleanup_test.go +++ b/internal/api/client/admin/mediacleanup_test.go @@ -81,7 +81,7 @@ func (suite *MediaCleanupTestSuite) TestMediaCleanupNoArg() {  	suite.NoError(err)  	// the media should no longer be cached -	suite.True(prunedAttachment.Cached) +	suite.False(prunedAttachment.Cached)  }  func (suite *MediaCleanupTestSuite) TestMediaCleanupNotOldEnough() { @@ -90,7 +90,7 @@ func (suite *MediaCleanupTestSuite) TestMediaCleanupNotOldEnough() {  	// set up the request  	recorder := httptest.NewRecorder() -	ctx := suite.newContext(recorder, http.MethodPost, []byte("{\"remote_cache_days\": 3}"), admin.EmojiPath, "application/json") +	ctx := suite.newContext(recorder, http.MethodPost, []byte("{\"remote_cache_days\": 10000}"), admin.EmojiPath, "application/json")  	// call the handler  	suite.adminModule.MediaCleanupPOSTHandler(ctx) 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)  }  | 
