From 78204201e3c9b7d316c3e48c2d4bd3c936193283 Mon Sep 17 00:00:00 2001 From: nitesh3108 Date: Tue, 8 Oct 2024 07:52:11 -0400 Subject: [PATCH] fix linters --- metrics_test.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/metrics_test.go b/metrics_test.go index 0b01757..39d67f6 100644 --- a/metrics_test.go +++ b/metrics_test.go @@ -29,12 +29,10 @@ import ( "github.com/stretchr/testify/assert" ) -const ( - metricsMockURL = APIMockURL + metricsURL - metricsMockVolMirrURL = APIMockURL + mirrorURL -) +const metricsMockURL = APIMockURL + metricsURL +const metricsMockVolMirrURL = APIMockURL + mirrorURL -const volId = "4ffcd8e8-2a93-49ed-b9b3-2e68c8ddc5e4" +const volID = "4ffcd8e8-2a93-49ed-b9b3-2e68c8ddc5e4" func TestClientIMPL_GetCapacity(t *testing.T) { totalSpace0 := 12077448036352 @@ -148,11 +146,11 @@ func TestClientIMPL_VolumeMirrorTransferRate(t *testing.T) { httpmock.RegisterResponder("GET", metricsMockVolMirrURL, httpmock.NewStringResponder(200, respData)) } - respData := fmt.Sprintf(`[{"id": "%s"}]`, volId) + respData := fmt.Sprintf(`[{"id": "%s"}]`, volID) setResponder(respData) - volMirr, err := C.VolumeMirrorTransferRate(context.Background(), volId) + volMirr, err := C.VolumeMirrorTransferRate(context.Background(), volID) assert.Nil(t, err) - assert.Equal(t, volId, volMirr[0].ID) + assert.Equal(t, volID, volMirr[0].ID) } func TestClientIMPL_PerformanceMetricsByCluster(t *testing.T) {