gorush/notify/main_test.go

19 lines
263 B
Go

package notify
import (
"log"
"testing"
"github.com/appleboy/gorush/config"
"github.com/appleboy/gorush/status"
)
func TestMain(m *testing.M) {
cfg, _ := config.LoadConf()
if err := status.InitAppStatus(cfg); err != nil {
log.Fatal(err)
}
m.Run()
}