fix: use a unique code that is not used in other tests

This commit is contained in:
Ayato 2025-03-15 22:28:05 +09:00
parent 3240f70010
commit 39e6631998
No known key found for this signature in database
GPG key ID: 56E05AE09DBA012D

View file

@ -130,7 +130,7 @@ func TestServerRoutes(t *testing.T) {
"client_id": client.GetID(),
"client_secret": "secret",
"redirect_uri": "https://example.com",
"code": "123",
"code": "abc",
},
wantCode: http.StatusBadRequest,
json: `{"error":"invalid_grant", "error_description":"invalid code"}`,