Skip to content

Commit

Permalink
gcs: only run oauth test if env var is set
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed Jan 3, 2022
1 parent 23702d0 commit ca38515
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions get_gcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ca38515

Please sign in to comment.