Skip to content

Commit

Permalink
fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
nitesh3108 committed Oct 8, 2024
1 parent 1b0f833 commit 7820420
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Check failure on line 35 in metrics_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

other declaration of volID (typecheck)

Check failure on line 35 in metrics_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

other declaration of volID (typecheck)

Check failure on line 35 in metrics_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

other declaration of volID (typecheck)

func TestClientIMPL_GetCapacity(t *testing.T) {
totalSpace0 := 12077448036352
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 7820420

Please sign in to comment.