增加健康检查定时任务/健康检查可以发送消息

This commit is contained in:
刘祥超
2020-10-20 16:45:03 +08:00
parent fd8ee5b926
commit 5c407f5d92
17 changed files with 555 additions and 20 deletions

View File

@@ -0,0 +1,16 @@
package tasks
import (
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestHealthCheckClusterTask_loop(t *testing.T) {
dbs.NotifyReady()
task := NewHealthCheckClusterTask(10, nil)
err := task.loop(10)
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}