Skip to content

Commit ca38515

Browse files
committed
gcs: only run oauth test if env var is set
1 parent 23702d0 commit ca38515

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

get_gcs_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ func TestGCSGetter_Url(t *testing.T) {
239239
}
240240

241241
func TestGCSGetter_GetFile_OAuthAccessToken(t *testing.T) {
242+
if os.Getenv("GOOGLE_OAUTH_ACCESS_TOKEN") == "" {
243+
t.Skip("Skipping; set GOOGLE_OAUTH_ACCESS_TOKEN to run")
244+
}
242245
g := new(GCSGetter)
243246
dst := tempTestFile(t)
244247
defer os.RemoveAll(filepath.Dir(dst))

0 commit comments

Comments
 (0)