reflect: fix SetIter test

Missed one review comment in CL 356049

Change-Id: I05be585d15e77afc1aa57b737cdc8ba7204bab98
Reviewed-on: https://go-review.googlesource.com/c/go/+/356051
Trust: Keith Randall <khr@golang.org>
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
Keith Randall 2021-10-14 23:01:34 -07:00
parent 81484cf626
commit 1cbec68512

View file

@ -7635,7 +7635,7 @@ func TestSetIter(t *testing.T) {
k.SetIterKey(i)
})
shouldPanic("Value.SetIterValue called before Next", func() {
k.SetIterValue(i)
v.SetIterValue(i)
})
data2 := map[string]int{}
for i.Next() {
@ -7650,7 +7650,7 @@ func TestSetIter(t *testing.T) {
k.SetIterKey(i)
})
shouldPanic("Value.SetIterValue called on exhausted iterator", func() {
k.SetIterValue(i)
v.SetIterValue(i)
})
i.Reset(m)