2021-07-23 17:56:33 +00:00
|
|
|
package notify
|
2021-07-11 12:04:46 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
2021-08-03 06:44:00 +00:00
|
|
|
"os"
|
2021-07-11 12:04:46 +00:00
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/appleboy/gorush/config"
|
2021-07-13 15:58:47 +00:00
|
|
|
"github.com/appleboy/gorush/status"
|
2021-07-11 12:04:46 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestMain(m *testing.M) {
|
2021-07-16 04:10:34 +00:00
|
|
|
cfg, _ := config.LoadConf()
|
|
|
|
if err := status.InitAppStatus(cfg); err != nil {
|
2021-07-13 15:58:47 +00:00
|
|
|
log.Fatal(err)
|
|
|
|
}
|
|
|
|
|
2021-08-03 06:44:00 +00:00
|
|
|
os.Exit(m.Run())
|
2021-07-11 12:04:46 +00:00
|
|
|
}
|