17296: Fix panic in teardown of skipped test.
[arvados.git] / lib / crunchrun / integration_test.go
index 50136e51d61660ba3dc4aaf5e27094ba6c8484ad..c688248c64fbdc26330144ebeafb3abf8c42edc6 100644 (file)
@@ -79,6 +79,10 @@ func (s *integrationSuite) SetUpSuite(c *C) {
 }
 
 func (s *integrationSuite) TearDownSuite(c *C) {
+       if s.client == nil {
+               // didn't set up
+               return
+       }
        err := s.client.RequestAndDecode(nil, "POST", "database/reset", nil, nil)
        c.Check(err, IsNil)
 }