summaryrefslogtreecommitdiff
path: root/internal/media/manager_test.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-12-21 11:17:43 +0100
committerLibravatar GitHub <noreply@github.com>2022-12-21 11:17:43 +0100
commit6ebdc306edd9b1ee0d853bdad63c0fb418382eb7 (patch)
treee2e2e5262af41cbeea7dd716e9cdc53092078200 /internal/media/manager_test.go
parent[chore] note broken go v1.19.4 in contributing.md (#1278) (diff)
downloadgotosocial-6ebdc306edd9b1ee0d853bdad63c0fb418382eb7.tar.xz
[bugfix] Close reader gracefully when streaming recache of remote media to fileserver api caller (#1281)
* close pipereader on failed data function * gently slurp the bytes * readability updates * go fmt * tidy up file server tests + add more cases * start moving io wrappers to separate iotools package. Remove use of buffering while piping recache stream Signed-off-by: kim <grufwub@gmail.com> * add license text Signed-off-by: kim <grufwub@gmail.com> Co-authored-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/media/manager_test.go')
-rw-r--r--internal/media/manager_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/media/manager_test.go b/internal/media/manager_test.go
index a8912bde0..f9361a831 100644
--- a/internal/media/manager_test.go
+++ b/internal/media/manager_test.go
@@ -440,7 +440,7 @@ func (suite *ManagerTestSuite) TestSlothVineProcessBlocking() {
processedThumbnailBytes, err := suite.storage.Get(ctx, attachment.Thumbnail.Path)
suite.NoError(err)
suite.NotEmpty(processedThumbnailBytes)
-
+
processedThumbnailBytesExpected, err := os.ReadFile("./test/test-mp4-thumbnail.jpg")
suite.NoError(err)
suite.NotEmpty(processedThumbnailBytesExpected)