Fix test for error string

This commit is contained in:
Daniel Krol 2022-06-17 12:58:44 -04:00
parent 05505bfebb
commit 0109c2f8f1

View file

@ -72,7 +72,7 @@ func TestServerAuthHandlerErrors(t *testing.T) {
method: http.MethodPost, method: http.MethodPost,
requestBody: "{", requestBody: "{",
expectedStatusCode: http.StatusBadRequest, expectedStatusCode: http.StatusBadRequest,
expectedErrorString: http.StatusText(http.StatusBadRequest) + ": Malformed request body JSON", expectedErrorString: http.StatusText(http.StatusBadRequest) + ": Request body JSON malformed or structure mismatch",
}, },
{ {
name: "body JSON failed validation", name: "body JSON failed validation",