auth
67:41d8f972720c Browse Files
Fix go vet issue. Was passing a Grant to fmt.Printf when I wanted a string. Changed to pass the code I was using to retrieve the Grant, as that turns out to be more relevant for the test, and go vet is now satisfied.
1.1 --- a/http_test.go Mon Nov 03 01:37:09 2014 -0500 1.2 +++ b/http_test.go Sun Nov 09 00:21:58 2014 -0500 1.3 @@ -112,8 +112,8 @@ 1.4 if red.Query().Get("code") == "" { 1.5 t.Fatalf(`Expected code param in redirect URL to be set, but it wasn't for %s`, req.URL.String()) 1.6 } 1.7 - if grant, err := testContext.GetGrant(red.Query().Get("code")); err != nil { 1.8 - t.Fatalf(`Unexpected error "%s: retrieving the grant "%s" supplied in the redirect URL for %s`, err, grant, req.URL.String()) 1.9 + if _, err := testContext.GetGrant(red.Query().Get("code")); err != nil { 1.10 + t.Fatalf(`Unexpected error "%s: retrieving the grant "%s" supplied in the redirect URL for %s`, err, red.Query().Get("code"), req.URL.String()) 1.11 } 1.12 err = testContext.DeleteGrant(red.Query().Get("code")) 1.13 if err != nil {