Fixed test error

This commit is contained in:
Junpei Tsuji
2018-11-06 17:30:39 +09:00
parent 70b42da9e1
commit 0404f1ee3e

View File

@@ -33,8 +33,9 @@ func init() {
func TestNew(t *testing.T) {
t.Parallel()
// Exception scenario
expected := "oauth2: cannot fetch token: 401 Unauthorized\nResponse: {\n \"error\" : \"invalid_client\",\n \"error_description\" : \"The OAuth client was invalid.\"\n}"
expected := "oauth2: cannot fetch token: 400 Bad Request\nResponse: {\n \"error\": \"invalid_grant\",\n \"error_description\": \"Invalid issuer: Not a service account.\"\n}"
actual, _ := New(dummyKey)
val := actual.httpCli.Transport.(*oauth2.Transport)