revert 299>300 in op_test.go

This commit is contained in:
Andrew Martinez 2024-08-26 08:57:58 -04:00 committed by Andrew
parent 4f2e5bd88b
commit 999c9fcd4c

View file

@ -214,7 +214,7 @@ func TestRoutes(t *testing.T) {
wantCode: http.StatusOK,
contains: []string{
`{"access_token":"`,
`","issued_token_type":"urn:ietf:params:oauth:token-type:refresh_token","token_type":"Bearer","expires_in":300,"scope":"openid offline_access","refresh_token":"`,
`","issued_token_type":"urn:ietf:params:oauth:token-type:refresh_token","token_type":"Bearer","expires_in":299,"scope":"openid offline_access","refresh_token":"`,
},
},
{
@ -227,7 +227,7 @@ func TestRoutes(t *testing.T) {
"scope": oidc.SpaceDelimitedArray{oidc.ScopeOpenID, oidc.ScopeOfflineAccess}.Encode(),
},
wantCode: http.StatusOK,
contains: []string{`{"access_token":"`, `","token_type":"Bearer","expires_in":300}`},
contains: []string{`{"access_token":"`, `","token_type":"Bearer","expires_in":299}`},
},
{
// This call will fail. A successfull test is already
@ -298,7 +298,7 @@ func TestRoutes(t *testing.T) {
contains: []string{
`{"access_token":"`,
`","token_type":"Bearer","refresh_token":"`,
`","expires_in":300,"id_token":"`,
`","expires_in":299,"id_token":"`,
},
},
{