Skip to content

Commit

Permalink
Fix data_test.go (#6030)
Browse files Browse the repository at this point in the history
  • Loading branch information
SupriyaKasten authored and Ilya Kislenko committed Jul 11, 2019
1 parent 59f2678 commit 9676982
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/function/data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ func (s *DataSuite) SetUpSuite(c *C) {

func (s *DataSuite) TearDownSuite(c *C) {
ctx := context.Background()
err := location.Delete(ctx, *s.profile, "")
c.Assert(err, IsNil)
if s.profile != nil {
err := location.Delete(ctx, *s.profile, "")
c.Assert(err, IsNil)
}
if s.namespace != "" {
s.cli.Core().Namespaces().Delete(s.namespace, nil)
}
Expand Down

0 comments on commit 9676982

Please sign in to comment.