Skip to content

Commit

Permalink
lint: minor warns
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed May 23, 2023
1 parent 134f967 commit 74ab2c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions errsizedgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ func TestErrorSizedGroup_MultiError(t *testing.T) {

func TestErrorSizedGroup_Cancel(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
ewg := NewErrSizedGroup(10, Context(ctx))

var c uint32
Expand Down Expand Up @@ -259,6 +260,7 @@ func TestErrorSizedGroup_Cancel(t *testing.T) {

func TestErrorSizedGroup_CancelWithPreemptive(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
ewg := NewErrSizedGroup(10, Context(ctx), Preemptive)

var c uint32
Expand Down

0 comments on commit 74ab2c8

Please sign in to comment.