Skip to content

Commit 5b920fa

Browse files
zachallerzhaque44
authored andcommitted
fix: lint
Signed-off-by: Zach Aller <[email protected]>
1 parent aa7d78b commit 5b920fa

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ GORELEASER ?= $(LOCALBIN)/goreleaser-$(GORELEASER_VERSION)
211211
KUSTOMIZE_VERSION ?= v5.3.0
212212
CONTROLLER_TOOLS_VERSION ?= v0.16.3
213213
ENVTEST_VERSION ?= release-0.19
214-
GOLANGCI_LINT_VERSION ?= v1.62.0
214+
GOLANGCI_LINT_VERSION ?= v1.62.2
215215
MOCKERY_VERSION ?= v2.42.2
216216
NILAWAY_VERSION ?= latest
217217
GINKGO_VERSION=$(shell go list -m all | grep github.com/onsi/ginkgo/v2 | awk '{print $$2}')

internal/utils/utils_test.go

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ func TestTruncateString(t *testing.T) {
2222
{"Negative length", "abcdef", -1, ""},
2323
}
2424

25-
for _, tt := range tests {
26-
tt := tt
27-
t.Run(tt.name, func(t *testing.T) {
25+
for _, test := range tests {
26+
t.Run(test.name, func(t *testing.T) {
2827
t.Parallel()
29-
result := TruncateString(tt.input, tt.length)
30-
assert.Equal(t, tt.expected, result)
28+
result := TruncateString(test.input, test.length)
29+
assert.Equal(t, test.expected, result)
3130
})
3231
}
3332
}
@@ -60,12 +59,11 @@ func TestUpsertEnvironmentStatus(t *testing.T) {
6059
},
6160
}
6261

63-
for _, tt := range tests {
64-
tt := tt
65-
t.Run(tt.name, func(t *testing.T) {
62+
for _, test := range tests {
63+
t.Run(test.name, func(t *testing.T) {
6664
t.Parallel()
67-
result := UpsertEnvironmentStatus(tt.initial, tt.insert)
68-
assert.Equal(t, tt.expected, result)
65+
result := UpsertEnvironmentStatus(test.initial, test.insert)
66+
assert.Equal(t, test.expected, result)
6967
})
7068
}
7169
}

0 commit comments

Comments
 (0)