Skip to content

Commit

Permalink
reflect: fix SetIter test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
randall77 committed Oct 15, 2021
1 parent 81484cf commit 1cbec68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reflect/all_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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)
Expand Down

0 comments on commit 1cbec68

Please sign in to comment.