Exemple #1
0
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())
	}
}
Exemple #2
0
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)
	}
}
Exemple #3
0
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)
	}
}