Skip to content

Commit 74ab2c8

Browse files
committed
lint: minor warns
1 parent 134f967 commit 74ab2c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

errsizedgroup_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ func TestErrorSizedGroup_MultiError(t *testing.T) {
232232

233233
func TestErrorSizedGroup_Cancel(t *testing.T) {
234234
ctx, cancel := context.WithCancel(context.Background())
235+
defer cancel()
235236
ewg := NewErrSizedGroup(10, Context(ctx))
236237

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

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

264266
var c uint32

0 commit comments

Comments
 (0)