diff --git a/get_gcs_test.go b/get_gcs_test.go index 1b5890ee7..cdd3e68c9 100644 --- a/get_gcs_test.go +++ b/get_gcs_test.go @@ -239,6 +239,9 @@ func TestGCSGetter_Url(t *testing.T) { } func TestGCSGetter_GetFile_OAuthAccessToken(t *testing.T) { + if os.Getenv("GOOGLE_OAUTH_ACCESS_TOKEN") == "" { + t.Skip("Skipping; set GOOGLE_OAUTH_ACCESS_TOKEN to run") + } g := new(GCSGetter) dst := tempTestFile(t) defer os.RemoveAll(filepath.Dir(dst))