diff --git a/tests/actions.go b/tests/actions.go index 35d6d52181..301663a12c 100644 --- a/tests/actions.go +++ b/tests/actions.go @@ -1224,17 +1224,6 @@ func (oa *operatorActions) monitorNormal(clusterInfo *TidbClusterConfig) (bool, glog.Infof("monitor ready replicas %d < 1", monitorDeployment.Status.ReadyReplicas) return false, nil } - configuratorJobName := fmt.Sprintf("%s-monitor-configurator", tcName) - monitorJob, err := oa.kubeCli.BatchV1().Jobs(ns).Get(configuratorJobName, metav1.GetOptions{}) - if err != nil { - glog.Infof("get monitor configurator job: [%s/%s] failed", ns, configuratorJobName) - return false, nil - } - if monitorJob.Status.Succeeded == 0 { - glog.Infof("the monitor configurator job: [%s/%s] had not success", ns, configuratorJobName) - return false, nil - } - if err := oa.checkPrometheus(clusterInfo); err != nil { glog.Infof("check [%s/%s]'s prometheus data failed: %v", ns, monitorDeploymentName, err) return false, nil diff --git a/tests/fault.go b/tests/fault.go index 0f97efdf26..d1b2862507 100644 --- a/tests/fault.go +++ b/tests/fault.go @@ -110,7 +110,7 @@ func (fa *faultTriggerActions) CheckAndRecoverEnv() error { } func (fa *faultTriggerActions) CheckAndRecoverEnvOrDie() { - if err:=fa.CheckAndRecoverEnv();err!=nil{ + if err := fa.CheckAndRecoverEnv(); err != nil { glog.Fatal(err) } }