Skip to content

Commit

Permalink
chore(deps): bump golangci-lint from 1.55.1 to 1.59.1 (#13473)
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Clucas <[email protected]>
  • Loading branch information
Joibel authored Aug 17, 2024
1 parent 4b47f43 commit bc22fb5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ dist/manifests/%: manifests/%
# lint/test/etc

$(GOPATH)/bin/golangci-lint:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b `go env GOPATH`/bin v1.55.1
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b `go env GOPATH`/bin v1.59.1

.PHONY: lint
lint: server/static/files.go $(GOPATH)/bin/golangci-lint
Expand Down
2 changes: 1 addition & 1 deletion cmd/argoexec/commands/emissary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func TestEmissary(t *testing.T) {
go func() {
defer wg.Done()
err := run("sleep 3")
require.EqualError(t, err, fmt.Sprintf("exit status %d", 128+signal))
assert.EqualError(t, err, fmt.Sprintf("exit status %d", 128+signal))
}()
wg.Wait()
}
Expand Down
4 changes: 2 additions & 2 deletions server/auth/sso/sso.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func newSso(
}

var filterGroupsRegex []*regexp.Regexp
if c.FilterGroupsRegex != nil && len(c.FilterGroupsRegex) > 0 {
if len(c.FilterGroupsRegex) > 0 {
for _, regex := range c.FilterGroupsRegex {
compiledRegex, err := regexp.Compile(regex)
if err != nil {
Expand Down Expand Up @@ -297,7 +297,7 @@ func (s *sso) HandleCallback(w http.ResponseWriter, r *http.Request) {
}

// only return groups that match at least one of the regexes
if s.filterGroupsRegex != nil && len(s.filterGroupsRegex) > 0 {
if len(s.filterGroupsRegex) > 0 {
var filteredGroups []string
for _, group := range groups {
for _, regex := range s.filterGroupsRegex {
Expand Down
6 changes: 3 additions & 3 deletions server/workflow/workflow_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ func TestWatchWorkflows(t *testing.T) {
ctx, cancel := context.WithCancel(ctx)
go func() {
err := server.WatchWorkflows(&workflowpkg.WatchWorkflowsRequest{}, &testWatchWorkflowServer{testServerStream{ctx}})
require.NoError(t, err)
assert.NoError(t, err)
}()
cancel()
}
Expand All @@ -708,7 +708,7 @@ func TestWatchLatestWorkflow(t *testing.T) {
FieldSelector: util.GenerateFieldSelectorFromWorkflowName("@latest"),
},
}, &testWatchWorkflowServer{testServerStream{ctx}})
require.NoError(t, err)
assert.NoError(t, err)
}()
cancel()
}
Expand Down Expand Up @@ -912,7 +912,7 @@ func TestPodLogs(t *testing.T) {
Namespace: "workflows",
LogOptions: &corev1.PodLogOptions{},
}, &testPodLogsServer{testServerStream{ctx}})
require.NoError(t, err)
assert.NoError(t, err)
}()
cancel()
}
Expand Down
5 changes: 3 additions & 2 deletions workflow/artifacts/http/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ func TestSaveHTTPArtifactRedirect(t *testing.T) {
// check that content is really there
buf := new(bytes.Buffer)
_, err = buf.ReadFrom(r.Body)
require.NoError(t, err)
assert.Equal(t, content, buf.String())
if assert.NoError(t, err) {
assert.Equal(t, content, buf.String())
}

w.WriteHeader(http.StatusCreated)
}
Expand Down

0 comments on commit bc22fb5

Please sign in to comment.