Skip to content

Commit

Permalink
Skipping TearDown for ibmtest (#5168)
Browse files Browse the repository at this point in the history
* Skipping TearDown for ibmtest

* adding missing )
  • Loading branch information
Ilya Kislenko committed Mar 9, 2019
1 parent 6a8b702 commit 69e7dc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/blockstorage/ibm/ibmcloud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ func (s *TestIBMCloudBlock) SetUpSuite(c *C) {

func (s TestIBMCloudBlock) TearDownSuite(c *C) {
// Check whether or not the test volume was initialized
if _, ok := os.LookupEnv(IBMApiKeyEnv); !ok {
c.Skip(fmt.Sprintf("Skipping TearDown"))
}
c.Assert(s.testVol, NotNil)
bsVol, err := s.provider.VolumeGet(context.Background(), s.testVol.ID, "")
c.Assert(err, IsNil)
Expand Down

0 comments on commit 69e7dc1

Please sign in to comment.