Skip to content

Commit 32c6ab5

Browse files
committed
wip
1 parent 5716e59 commit 32c6ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deviceauth_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)