]> Cypherpunks repositories - gostls13.git/commit
iter: fix spurious TestPullDoubleYield[2] successes
authorElias Naur <mail@eliasnaur.com>
Sun, 6 Oct 2024 16:47:56 +0000 (18:47 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 7 Oct 2024 19:12:35 +0000 (19:12 +0000)
commit604eaa175bfaadfb868d6add76325020b6e13048
tree39c3106c57d69d227ac4d9ac0791814f3e80c5e9
parent7e2487cf65f749528c17adf95ad2a82196f48de2
iter: fix spurious TestPullDoubleYield[2] successes

The two tests confused a nil pointer panic with the panic from a double
call to yield.

Change-Id: I0040e60cf4b702a92825d308db1201a85f164009
Reviewed-on: https://go-review.googlesource.com/c/go/+/617917
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/iter/pull_test.go