From c7ecab9e6fb76bb10da26c803fc5838419642423 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 10 Nov 2023 17:42:48 +0100 Subject: [chore/bugfix/horror] Allow `expires_in` and poll choices to be parsed from strings (#2346) --- internal/api/client/accounts/accountdelete_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'internal/api/client/accounts/accountdelete_test.go') 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) } -- cgit v1.2.3