File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -138,14 +138,14 @@ func TestDeviceAuthTokenRetrieveError(t *testing.T) {
138138 }
139139 }
140140
141- t .Run ("TestDeviceAuthTokenRetrieveErrorUrlEncoding " , runner (func (w http.ResponseWriter ) {
141+ t .Run ("UrlEncoding " , runner (func (w http.ResponseWriter ) {
142142 w .Header ().Set ("Content-type" , "application/x-www-form-urlencoded" )
143143 // "The authorization server responds with an HTTP 400 (Bad Request)" https://www.rfc-editor.org/rfc/rfc6749#section-5.2
144144 w .WriteHeader (http .StatusBadRequest )
145145 w .Write ([]byte (`error=invalid_grant&error_description=sometext` ))
146146 }))
147147
148- t .Run ("TestDeviceAuthTokenRetrieveErrorJSON " , runner (func (w http.ResponseWriter ) {
148+ t .Run ("JSON " , runner (func (w http.ResponseWriter ) {
149149 w .Header ().Set ("Content-type" , "application/json" )
150150 // "The authorization server responds with an HTTP 400 (Bad Request)" https://www.rfc-editor.org/rfc/rfc6749#section-5.2
151151 w .WriteHeader (http .StatusBadRequest )
You can’t perform that action at this time.
0 commit comments