forked from Mirrors/oauth2
Final nits.
Change-Id: I662df725703b5fbc109c2b3bcdb9780424619bdc
This commit is contained in:
parent
0cc2c09354
commit
9c218789db
|
@ -80,5 +80,4 @@ func (its impersonateTokenSource) Token() (*oauth2.Token, error) {
|
||||||
Expiry: expiry,
|
Expiry: expiry,
|
||||||
TokenType: "Bearer",
|
TokenType: "Bearer",
|
||||||
}, nil
|
}, nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,6 @@ var (
|
||||||
|
|
||||||
func TestImpersonation(t *testing.T) {
|
func TestImpersonation(t *testing.T) {
|
||||||
impersonateServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
impersonateServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
if got, want := r.URL.String(), "/"; got != want {
|
if got, want := r.URL.String(), "/"; got != want {
|
||||||
t.Errorf("URL.String(): got %v but want %v", got, want)
|
t.Errorf("URL.String(): got %v but want %v", got, want)
|
||||||
}
|
}
|
||||||
|
@ -93,5 +92,4 @@ func TestImpersonation(t *testing.T) {
|
||||||
if got, want := tok.TokenType, "Bearer"; got != want {
|
if got, want := tok.TokenType, "Bearer"; got != want {
|
||||||
t.Errorf("Unexpected TokenType: got %v, but wanted %v", got, want)
|
t.Errorf("Unexpected TokenType: got %v, but wanted %v", got, want)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue