downscope: further updates and nits

This commit is contained in:
Patrick Jones
2021-06-22 09:25:17 -07:00
parent a362f28044
commit 304d28ba9e
3 changed files with 23 additions and 18 deletions

View File

@@ -46,12 +46,8 @@ func Test_DownscopedTokenSource(t *testing.T) {
}
myTok := oauth2.Token{AccessToken: "Mellon"}
tmpSrc := oauth2.StaticTokenSource(&myTok)
out, err := downscopedTokenWithEndpoint(context.Background(), DownscopingConfig{tmpSrc, new}, ts.URL)
_, err := downscopedTokenWithEndpoint(context.Background(), DownscopingConfig{tmpSrc, new}, ts.URL)
if err != nil {
t.Fatalf("NewDownscopedTokenSource failed with error: %v", err)
}
_, err = out.Token()
if err != nil {
t.Fatalf("Token() call failed with error %v", err)
}
}