yao/model/init_test.go
2021-10-18 23:42:28 +08:00

22 lines
272 B
Go

package model
import (
"os"
"testing"
"github.com/yaoapp/gou"
"github.com/yaoapp/xiang/config"
)
var cfg config.Config
func TestMain(m *testing.M) {
// Run test suites
exitVal := m.Run()
// we can do clean up code here
gou.KillPlugins()
os.Exit(exitVal)
}