From 9604ed49b9bc3d98768e162f5489956fc832ac2f Mon Sep 17 00:00:00 2001 From: Electronic-Waste <2690692950@qq.com> Date: Thu, 19 Sep 2024 03:04:02 +0000 Subject: [PATCH] fix(trial): use gofmt to reformat code. Signed-off-by: Electronic-Waste <2690692950@qq.com> --- .../trial/trial_controller_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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())