summaryrefslogtreecommitdiff
path: root/internal/api/client/media/mediaupdate_test.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-11-10 17:42:48 +0100
committerLibravatar GitHub <noreply@github.com>2023-11-10 16:42:48 +0000
commitc7ecab9e6fb76bb10da26c803fc5838419642423 (patch)
tree41410d639bdb8b19a93e972a6d05937f82ab4299 /internal/api/client/media/mediaupdate_test.go
parent[bugfix] Don't try to update suspended accounts (#2348) (diff)
downloadgotosocial-c7ecab9e6fb76bb10da26c803fc5838419642423.tar.xz
[chore/bugfix/horror] Allow `expires_in` and poll choices to be parsed from strings (#2346)
Diffstat (limited to 'internal/api/client/media/mediaupdate_test.go')
-rw-r--r--internal/api/client/media/mediaupdate_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/api/client/media/mediaupdate_test.go b/internal/api/client/media/mediaupdate_test.go
index 423178ee7..603bde402 100644
--- a/internal/api/client/media/mediaupdate_test.go
+++ b/internal/api/client/media/mediaupdate_test.go
@@ -149,10 +149,10 @@ func (suite *MediaUpdateTestSuite) TestUpdateImage() {
ctx.Set(oauth.SessionAuthorizedAccount, suite.testAccounts["local_account_1"])
// create the request
- buf, w, err := testrig.CreateMultipartFormData("", "", map[string]string{
- "id": toUpdate.ID,
- "description": "new description!",
- "focus": "-0.1,0.3",
+ buf, w, err := testrig.CreateMultipartFormData("", "", map[string][]string{
+ "id": {toUpdate.ID},
+ "description": {"new description!"},
+ "focus": {"-0.1,0.3"},
})
if err != nil {
panic(err)
@@ -210,10 +210,10 @@ func (suite *MediaUpdateTestSuite) TestUpdateImageShortDescription() {
ctx.Set(oauth.SessionAuthorizedAccount, suite.testAccounts["local_account_1"])
// create the request
- buf, w, err := testrig.CreateMultipartFormData("", "", map[string]string{
- "id": toUpdate.ID,
- "description": "new description!",
- "focus": "-0.1,0.3",
+ buf, w, err := testrig.CreateMultipartFormData("", "", map[string][]string{
+ "id": {toUpdate.ID},
+ "description": {"new description!"},
+ "focus": {"-0.1,0.3"},
})
if err != nil {
panic(err)