fix tests

This commit is contained in:
Livio Amstutz 2020-09-28 15:06:14 +02:00
parent 0cad2e4652
commit 1661b40fbe
3 changed files with 2 additions and 39 deletions

View file

@ -45,7 +45,7 @@ func main() {
}
token := cli.CodeFlow(relayingParty, callbackPath, port, state)
client := github.NewClient(relayingParty.Client(ctx, token.Token))
client := github.NewClient(relayingParty.OAuthConfig().Client(ctx, token.Token))
_, _, err = client.Users.Get(ctx, "")
if err != nil {