Skip to content

Commit

Permalink
Skip TearDownSuite in GCS test if GCS credentials are not set (kahing#83
Browse files Browse the repository at this point in the history
)
  • Loading branch information
deka108 authored and dotslash committed Apr 1, 2021
1 parent c79d155 commit 503634c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/backend_gcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ func (s *GCSBackendTest) SetUpSuite(c *C) {
}

func (s *GCSBackendTest) TearDownSuite(c *C) {
if os.Getenv("GOOGLE_APPLICATION_CREDENTIALS") == "" {
c.Skip("Skipping because GOOGLE_APPLICATION_CREDENTIALS variable is unset.")
}
out, err := s.gcsBackend.ListBlobs(&ListBlobsInput{})
c.Assert(err, IsNil)

Expand Down

0 comments on commit 503634c

Please sign in to comment.