From 0109c2f8f1d71470051f3f256fd7451d0ab83ba1 Mon Sep 17 00:00:00 2001 From: Daniel Krol Date: Fri, 17 Jun 2022 12:58:44 -0400 Subject: [PATCH] Fix test for error string --- server/auth_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/auth_test.go b/server/auth_test.go index 03a23b2..e9ba5f9 100644 --- a/server/auth_test.go +++ b/server/auth_test.go @@ -72,7 +72,7 @@ func TestServerAuthHandlerErrors(t *testing.T) { method: http.MethodPost, requestBody: "{", 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",