Kaynağa Gözat

functional-tester/cmd/etcd-tester: check error from "Bootstrap"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 8 yıl önce
ebeveyn
işleme
194cdede89

+ 3 - 0
tools/functional-tester/cmd/etcd-tester/main.go

@@ -45,6 +45,9 @@ func main() {
 	}
 	}
 
 
 	err = clus.Bootstrap()
 	err = clus.Bootstrap()
+	if err != nil {
+		logger.Fatal("Bootstrap failed", zap.Error(err))
+	}
 	defer clus.DestroyEtcdAgents()
 	defer clus.DestroyEtcdAgents()
 
 
 	err = clus.WaitHealth()
 	err = clus.WaitHealth()