summaryrefslogtreecommitdiff
path: root/internal/api/client/accounts/accountdelete_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/accounts/accountdelete_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/accounts/accountdelete_test.go')
-rw-r--r--internal/api/client/accounts/accountdelete_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/api/client/accounts/accountdelete_test.go b/internal/api/client/accounts/accountdelete_test.go
index d8889b680..2f5a25b4b 100644
--- a/internal/api/client/accounts/accountdelete_test.go
+++ b/internal/api/client/accounts/accountdelete_test.go
@@ -36,8 +36,8 @@ func (suite *AccountDeleteTestSuite) TestAccountDeletePOSTHandler() {
// we're deleting zork
requestBody, w, err := testrig.CreateMultipartFormData(
"", "",
- map[string]string{
- "password": "password",
+ map[string][]string{
+ "password": {"password"},
})
if err != nil {
panic(err)
@@ -58,8 +58,8 @@ func (suite *AccountDeleteTestSuite) TestAccountDeletePOSTHandlerWrongPassword()
// we're deleting zork
requestBody, w, err := testrig.CreateMultipartFormData(
"", "",
- map[string]string{
- "password": "aaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ map[string][]string{
+ "password": {"aaaaaaaaaaaaaaaaaaaaaaaaaaaa"},
})
if err != nil {
panic(err)
@@ -80,7 +80,7 @@ func (suite *AccountDeleteTestSuite) TestAccountDeletePOSTHandlerNoPassword() {
// we're deleting zork
requestBody, w, err := testrig.CreateMultipartFormData(
"", "",
- map[string]string{})
+ map[string][]string{})
if err != nil {
panic(err)
}