From 14806e6b37a019cbff58e2088ee99191e89b4f7e Mon Sep 17 00:00:00 2001 From: Guillaume Blaquiere Date: Thu, 28 Oct 2021 19:46:04 +0200 Subject: [PATCH] fix: wrong test case. --- google/google.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/google.go b/google/google.go index bf5e432..ccc23ee 100644 --- a/google/google.go +++ b/google/google.go @@ -186,7 +186,7 @@ func (f *credentialsFile) tokenSource(ctx context.Context, params CredentialsPar } return cfg.TokenSource(ctx) case impersonatedServiceAccount: - if f.ServiceAccountImpersonationURL != "" || f.SourceCredentials == nil { + if f.ServiceAccountImpersonationURL == "" || f.SourceCredentials == nil { return nil, errors.New("missing 'source_credentials' field or 'service_account_impersonation_url' in credentials") }