diff --git a/pkg/controller.v1beta1/trial/trial_controller_test.go b/pkg/controller.v1beta1/trial/trial_controller_test.go index 3a7a3d527fc..00ac7764b5e 100644 --- a/pkg/controller.v1beta1/trial/trial_controller_test.go +++ b/pkg/controller.v1beta1/trial/trial_controller_test.go @@ -306,10 +306,10 @@ func TestReconcileBatchJob(t *testing.T) { g.Expect(trial.IsMetricsUnavailable()).Should(gomega.BeTrue()) g.Expect(trial.Status.Observation.Metrics).ShouldNot(gomega.HaveLen(0)) g.Expect(trial.Status.Observation.Metrics[0]).Should(gomega.BeComparableTo(commonv1beta1.Metric{ - Name: objectiveMetric, - Min: consts.UnavailableMetricValue, - Max: consts.UnavailableMetricValue, - Latest: consts.UnavailableMetricValue, + Name: objectiveMetric, + Min: consts.UnavailableMetricValue, + Max: consts.UnavailableMetricValue, + Latest: consts.UnavailableMetricValue, })) }, timeout).Should(gomega.Succeed()) @@ -347,10 +347,10 @@ func TestReconcileBatchJob(t *testing.T) { g.Expect(trial.IsMetricsUnavailable()).Should(gomega.BeTrue()) g.Expect(trial.Status.Observation.Metrics).ShouldNot(gomega.HaveLen(0)) g.Expect(trial.Status.Observation.Metrics[0]).Should(gomega.BeComparableTo(commonv1beta1.Metric{ - Name: objectiveMetric, - Min: consts.UnavailableMetricValue, - Max: consts.UnavailableMetricValue, - Latest: consts.UnavailableMetricValue, + Name: objectiveMetric, + Min: consts.UnavailableMetricValue, + Max: consts.UnavailableMetricValue, + Latest: consts.UnavailableMetricValue, })) }, timeout).Should(gomega.Succeed())