Update a test assertion to make failure easier to understand

This commit is contained in:
Ryan Richard
2023-06-28 10:01:23 -07:00
parent e4f43683d4
commit 022fdb9cfd
2 changed files with 3 additions and 1 deletions

View File

@@ -2547,6 +2547,8 @@ func makeAuthorizationRequestAndRequireSecurityHeaders(ctx context.Context, t *t
t.Logf("makeAuthorizationRequestAndRequireSecurityHeaders authorization response: %#v", authorizeResp)
t.Logf("makeAuthorizationRequestAndRequireSecurityHeaders authorization response body: %q", body)
}
require.Less(t, authorizeResp.StatusCode, 400,
"expected a successful authorize response, but got a response status indicating an error (see log above)")
expectSecurityHeaders(t, authorizeResp, false)
}