From 0404f1ee3e0dfd2ec644e944a928ea314e1b0159 Mon Sep 17 00:00:00 2001 From: Junpei Tsuji Date: Tue, 6 Nov 2018 17:30:39 +0900 Subject: [PATCH] Fixed test error --- playstore/validator_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playstore/validator_test.go b/playstore/validator_test.go index b21dcc1..1f50452 100644 --- a/playstore/validator_test.go +++ b/playstore/validator_test.go @@ -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)