kola/tests/etcd: convert return to harness Fatal methods
package etcd
import (
- "fmt"
-
"github.com/coreos/pkg/capnslog"
"github.com/coreos/mantle/kola/cluster"
@@ -61,17 +59,17 @@ func Discovery(c cluster.TestCluster) error {
// NOTE(pb): this check makes the next code somewhat redundant
if err = GetClusterHealth(c.Machines()[0], len(c.Machines())); err != nil {
- return fmt.Errorf("discovery failed cluster-health check: %v", err)
+ c.Fatalf("discovery failed cluster-health check: %v", err)
}
var keyMap map[string]string
keyMap, err = setKeys(c, 5)
if err != nil {
- return fmt.Errorf("failed to set keys: %v", err)
+ c.Fatalf("failed to set keys: %v", err)
}
if err = checkKeys(c, keyMap); err != nil {
- return fmt.Errorf("failed to check keys: %v", err)
+ c.Fatalf("failed to check keys: %v", err)
}
return nil
