Skip to content

Commit

Permalink
Add missing leaktest checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Sep 9, 2024
1 parent dbf4a11 commit b71fb5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions taskgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ func TestSingleResult(t *testing.T) {
}

func TestCollector(t *testing.T) {
defer leaktest.Check(t)()

var sum int
c := taskgroup.Collect(func(v int) { sum += v })

Expand Down Expand Up @@ -291,6 +293,8 @@ func TestCollector(t *testing.T) {
}

func TestCollector_Report(t *testing.T) {
defer leaktest.Check(t)()

var sum int
c := taskgroup.Collect(func(v int) { sum += v })

Expand Down

0 comments on commit b71fb5f

Please sign in to comment.