配置变更的时候自动同步,不再需要手工点击同步

This commit is contained in:
GoEdgeLab
2020-11-18 10:07:29 +08:00
parent b9edc0ce8a
commit a09e8be6e9
10 changed files with 134 additions and 44 deletions

View File

@@ -0,0 +1,12 @@
package tasks
import "testing"
func TestSyncClusterTask_loop(t *testing.T) {
task := NewSyncClusterTask()
err := task.loop()
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}