diff options
author | 2021-09-11 20:12:47 +0100 | |
---|---|---|
committer | 2021-09-11 20:12:47 +0100 | |
commit | e43a46e9822a05dd0345a7676e03285ddf83205e (patch) | |
tree | 72db13159e47d7815d001285fadb8225b1f7a571 /internal/api/client/fileserver | |
parent | documentation updates (#211) (diff) | |
download | gotosocial-e43a46e9822a05dd0345a7676e03285ddf83205e.tar.xz |
add git.iim.gay/grufwub/go-store for storage backend, replacing blob.Storage
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
Diffstat (limited to 'internal/api/client/fileserver')
-rw-r--r-- | internal/api/client/fileserver/servefile_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/api/client/fileserver/servefile_test.go b/internal/api/client/fileserver/servefile_test.go index 579bb9606..6d5f2d39e 100644 --- a/internal/api/client/fileserver/servefile_test.go +++ b/internal/api/client/fileserver/servefile_test.go @@ -26,12 +26,12 @@ import ( "net/http/httptest" "testing" + "git.iim.gay/grufwub/go-store/kv" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/api/client/fileserver" - "github.com/superseriousbusiness/gotosocial/internal/blob" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/federation" @@ -49,7 +49,7 @@ type ServeFileTestSuite struct { config *config.Config db db.DB log *logrus.Logger - storage blob.Storage + storage *kv.KVStore federator federation.Federator tc typeutils.TypeConverter processor processing.Processor @@ -152,7 +152,7 @@ func (suite *ServeFileTestSuite) TestServeOriginalFileSuccessful() { assert.NoError(suite.T(), err) assert.NotNil(suite.T(), b) - fileInStorage, err := suite.storage.RetrieveFileFrom(targetAttachment.File.Path) + fileInStorage, err := suite.storage.Get(targetAttachment.File.Path) assert.NoError(suite.T(), err) assert.NotNil(suite.T(), fileInStorage) assert.Equal(suite.T(), b, fileInStorage) |