diff --git a/test/e2e/simple.go b/test/e2e/simple.go index 5884a0447f..2479dc2ccc 100644 --- a/test/e2e/simple.go +++ b/test/e2e/simple.go @@ -138,7 +138,9 @@ func E2ESimple(logger *logrus.Logger) error { MetricName: buildInfoMetricName, Labels: map[string]string{instanceMetricName: nodeID}, }) - logger.Infof("node: %s, metric value: %v", n.Name, value) + if err == nil { + logger.Infof("node: %s, metric value: %v", n.Name, value) + } return err }, metricRetryInterval, metricRetryTimeout)