oauth2: fixing broken test.

This commit is contained in:
Burcu Dogan 2014-05-10 13:50:23 +03:00
parent 2af52e700e
commit 1e1d5bfc0f
1 changed files with 2 additions and 2 deletions

View File

@ -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")
}