gorush/notify/main_test.go

20 lines
278 B
Go
Raw Permalink Normal View History

package notify
import (
"log"
"os"
"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)
}
os.Exit(m.Run())
}