From c538ca335e9117ed48b89e2d2b2f77c589580859 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Wed, 14 Oct 2020 17:59:38 -0700 Subject: [PATCH] internal/servers/controller: fix dropped test error (#687) --- internal/servers/controller/handler_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/servers/controller/handler_test.go b/internal/servers/controller/handler_test.go index 8687b861dc..2b372c8b2e 100644 --- a/internal/servers/controller/handler_test.go +++ b/internal/servers/controller/handler_test.go @@ -53,6 +53,7 @@ func TestAuthenticationHandler(t *testing.T) { // Set the token type to cookie and make sure the body does not contain the token anymore. request["token_type"] = "cookie" b, err = json.Marshal(request) + require.NoError(t, err) resp, err = http.Post(fmt.Sprintf("%s/v1/auth-methods/ampw_1234567890:authenticate", c.ApiAddrs()[0]), "application/json", bytes.NewReader(b)) require.NoError(t, err)