17296: Fix panic in teardown of skipped test.
authorTom Clegg <tom@curii.com>
Tue, 25 May 2021 23:31:55 +0000 (19:31 -0400)
committerTom Clegg <tom@curii.com>
Tue, 25 May 2021 23:31:55 +0000 (19:31 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

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)
 }