示例#1
0
func (s *S) TearDownSuite(c *gocheck.C) {
	coll := collection()
	defer coll.Close()
	err := coll.Database.DropDatabase()
	c.Assert(err, gocheck.IsNil)
	fsystem = nil
	tTesting.RollbackTargetFile(s.targetRecover)
}
示例#2
0
func (s *S) TearDownSuite(c *gocheck.C) {
	coll := collection()
	defer coll.Close()
	err := coll.Database.DropDatabase()
	c.Assert(err, gocheck.IsNil)
	fsystem = nil
	tTesting.RollbackTargetFile(s.targetRecover)
	s.storage.Apps().Database.DropDatabase()
	s.storage.Close()
	app.Provisioner = s.oldProvisioner
}
示例#3
0
func (s *S) TearDownSuite(c *gocheck.C) {
	tTesting.RollbackTargetFile(s.recover)
}