forked from Mirrors/oauth2
oauth2: fixing broken test.
This commit is contained in:
parent
2af52e700e
commit
1e1d5bfc0f
|
@ -77,8 +77,8 @@ func TestExchangingTransport(t *testing.T) {
|
|||
func TestFetchWithNoRedirect(t *testing.T) {
|
||||
DefaultTransport = http.DefaultTransport
|
||||
|
||||
fetcher := newTestConf().(tokenFetcher)
|
||||
_, err := fetcher.fetchToken(&Token{})
|
||||
fetcher := newTestConf().(TokenFetcher)
|
||||
_, err := fetcher.FetchToken(&Token{})
|
||||
if err == nil {
|
||||
t.Fatalf("Fetch should return an error if no refresh token is set")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue