func (s *ControlIntSuite) TearDownTest(c *C) { if err := helper.StopGonit(s.gonitCmd, s.ctrlCfgDir); err != nil { c.Errorf(err.Error()) } if err := os.RemoveAll(s.ctrlCfgDir); err != nil { c.Errorf(err.Error()) } }
func (s *WatcherIntSuite) TearDownTest(c *C) { if err := helper.StopGonit(s.gonitCmd, s.dir); err != nil { c.Errorf(err.Error()) } for _, process := range s.procs { helper.Cleanup(process) } }
func (s *ApiIntSuite) TearDownSuite(c *C) { s.client.Close() if err := helper.StopGonit(s.gonitCmd, s.dir); err != nil { c.Errorf(err.Error()) } for _, process := range s.procs { helper.Cleanup(process) } }