Fixes based on PR comments.

Signed-off-by: justin-slowik <justin.slowik@thermofisher.com>
This commit is contained in:
justin-slowik
2020-07-08 16:36:52 -04:00
parent 1ea2892b79
commit 334ecf0482
2 changed files with 8 additions and 11 deletions

View File

@@ -1337,9 +1337,6 @@ func TestOAuth2DeviceFlow(t *testing.T) {
data := url.Values{}
data.Set("client_id", clientID)
data.Add("scope", strings.Join(requestedScopes, " "))
//for _, scope := range requestedScopes {
// data.Add("scope", scope)
//}
resp, err := http.PostForm(codeURL.String(), data)
if err != nil {
t.Errorf("Could not request device code: %v", err)