Skip to content

Commit

Permalink
test(fix): fix gosec linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3r committed Oct 5, 2023
1 parent 62ac6e4 commit ae4537f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vela/schedule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (

"github.com/go-vela/server/mock/server"
"github.com/go-vela/types/library"
"github.com/google/go-cmp/cmp"
)

func TestSchedule_Get(t *testing.T) {
Expand Down Expand Up @@ -146,8 +147,8 @@ func TestSchedule_GetAll(t *testing.T) {
t.Errorf("GetAll for %s is %v, want %v", test.name, gotResp.StatusCode, test.wantResp)
}

if !reflect.DeepEqual(got, &test.want) {
t.Errorf("GetAll for %s is %v, want %v", test.name, *got, test.want)
if cmp.Equal(got, test.want) {
t.Errorf("GetAll for %s is %v, want %v", test.name, got, test.want)
}
})
}
Expand Down

0 comments on commit ae4537f

Please sign in to comment.