Skip to content

Commit

Permalink
chore: Bump golangci-lint to v1.62.0 (#48748)
Browse files Browse the repository at this point in the history
* chore: Bump golangci-lint to v1.62.0

* Use require.NoError instead of require.Empty
  • Loading branch information
codingllama authored Nov 11, 2024
1 parent 9379fb7 commit 51b0e37
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.assets/versions.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Sync with devbox.json.
GOLANG_VERSION ?= go1.23.3
GOLANGCI_LINT_VERSION ?= v1.61.0
GOLANGCI_LINT_VERSION ?= v1.62.0

NODE_VERSION ?= 20.18.0

Expand Down
6 changes: 3 additions & 3 deletions lib/integrations/awsoidc/eks_enroll_clusters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func TestEnrollEKSClusters(t *testing.T) {
responseCheck: func(t *testing.T, response *EnrollEKSClusterResponse) {
require.Len(t, response.Results, 1)
require.Equal(t, "EKS1", response.Results[0].ClusterName)
require.Empty(t, response.Results[0].Error)
require.NoError(t, response.Results[0].Error)
require.NotEmpty(t, response.Results[0].ResourceId)
},
},
Expand All @@ -185,10 +185,10 @@ func TestEnrollEKSClusters(t *testing.T) {
return strings.Compare(a.ClusterName, b.ClusterName)
})
require.Equal(t, "EKS1", response.Results[0].ClusterName)
require.Empty(t, response.Results[0].Error)
require.NoError(t, response.Results[0].Error)
require.NotEmpty(t, response.Results[0].ResourceId)
require.Equal(t, "EKS2", response.Results[1].ClusterName)
require.Empty(t, response.Results[1].Error)
require.NoError(t, response.Results[1].Error)
require.NotEmpty(t, response.Results[1].ResourceId)
},
},
Expand Down
2 changes: 1 addition & 1 deletion lib/services/local/access_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ func TestAccessListReviewCRUD(t *testing.T) {

// Verify that access lists reviews are gone.
_, _, err = service.ListAccessListReviews(ctx, accessList1.GetName(), 0, "")
require.Empty(t, err)
require.NoError(t, err)
}

func TestAccessListRequiresEqual(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/services/role_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ func TestValidateRole(t *testing.T) {
require.NoError(t, err, trace.DebugReport(err))

if len(tc.expectWarnings) == 0 {
require.Empty(t, warning)
require.NoError(t, warning)
}
for _, msg := range tc.expectWarnings {
require.ErrorContains(t, warning, msg)
Expand Down

0 comments on commit 51b0e37

Please sign in to comment.