diff --git a/middlewares/authenticate_test.go b/middlewares/authenticate_test.go index a7d93abf..dc4bb15c 100644 --- a/middlewares/authenticate_test.go +++ b/middlewares/authenticate_test.go @@ -43,7 +43,7 @@ func TestAuthenticateMiddleware_tryGetUserByApiKeyHeader_Invalid(t *testing.T) { mockRequest := &http.Request{ Header: http.Header{ // 'Basic' prefix missing here - "Authorization": []string{fmt.Sprintf("%s", testToken)}, + "Authorization": []string{testToken}, }, }