From 6c29f347b4d5d81b49a1a12c4f7a004e73ac4ec2 Mon Sep 17 00:00:00 2001 From: Monis Khan Date: Fri, 27 Aug 2021 09:43:54 -0400 Subject: [PATCH] go 1.17 bump: fix unit test failures Signed-off-by: Monis Khan --- internal/certauthority/certauthority_test.go | 2 +- internal/oidc/token/token_handler_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/certauthority/certauthority_test.go b/internal/certauthority/certauthority_test.go index 80948a779..016268be0 100644 --- a/internal/certauthority/certauthority_test.go +++ b/internal/certauthority/certauthority_test.go @@ -261,7 +261,7 @@ func TestIssue(t *testing.T) { clock: func() time.Time { return now }, }, }, - wantErr: "could not parse CA certificate: asn1: syntax error: sequence truncated", + wantErr: "could not parse CA certificate: x509: malformed certificate", }, { name: "signing error", diff --git a/internal/oidc/token/token_handler_test.go b/internal/oidc/token/token_handler_test.go index bca9a3ce3..9032dd10e 100644 --- a/internal/oidc/token/token_handler_test.go +++ b/internal/oidc/token/token_handler_test.go @@ -103,7 +103,7 @@ var ( fositeInvalidPayloadErrorBody = here.Doc(` { "error": "invalid_request", - "error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Unable to parse HTTP body, make sure to send a properly formatted form request body." + "error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. The POST body can not be empty." } `)