summaryrefslogtreecommitdiff
path: root/internal/api/client/media/mediacreate_test.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2025-04-14 12:32:49 +0000
committerLibravatar GitHub <noreply@github.com>2025-04-14 13:32:49 +0100
commit36758ea0de6a7ce7b94d5db561fa1d81f37b96d0 (patch)
tree030a0dd8764d7343d61781d19a99940587333a59 /internal/api/client/media/mediacreate_test.go
parent[chore] Update + add fonts for additional scripts, use locally installed font... (diff)
downloadgotosocial-36758ea0de6a7ce7b94d5db561fa1d81f37b96d0.tar.xz
[bugfix] media v2 endpoint fix unset url (#4008)
* update semantics of when media URL is left unset * fix test
Diffstat (limited to 'internal/api/client/media/mediacreate_test.go')
-rw-r--r--internal/api/client/media/mediacreate_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/client/media/mediacreate_test.go b/internal/api/client/media/mediacreate_test.go
index fabff595b..6f7bf781f 100644
--- a/internal/api/client/media/mediacreate_test.go
+++ b/internal/api/client/media/mediacreate_test.go
@@ -297,7 +297,7 @@ func (suite *MediaCreateTestSuite) TestMediaCreateSuccessfulV2() {
}, *attachmentReply.Meta)
suite.Equal("LiB|W-#6RQR.~qvzRjWF_3rqV@a$", *attachmentReply.Blurhash)
suite.NotEmpty(attachmentReply.ID)
- suite.Nil(attachmentReply.URL)
+ suite.NotEmpty(attachmentReply.URL)
suite.NotEmpty(attachmentReply.PreviewURL)
suite.Equal(len(storageKeysBeforeRequest)+2, len(storageKeysAfterRequest)) // 2 images should be added to storage: the original and the thumbnail
}