diff options
author | Keith Randall <khr@golang.org> | 2021-10-14 23:01:34 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2021-10-15 07:13:43 +0000 |
commit | 1cbec685124b7a40fe899286db697a85da7be28a (patch) | |
tree | c0ab20b697108aa61d170e7d641bc1155edbd69e /src/reflect/all_test.go | |
parent | 81484cf6263461057251bbda825f2c3dc4cdcd09 (diff) | |
download | go-1cbec685124b7a40fe899286db697a85da7be28a.tar.gz go-1cbec685124b7a40fe899286db697a85da7be28a.zip |
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>
Diffstat (limited to 'src/reflect/all_test.go')
-rw-r--r-- | src/reflect/all_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reflect/all_test.go b/src/reflect/all_test.go index 58156e0e5f..427855b02e 100644 --- a/src/reflect/all_test.go +++ b/src/reflect/all_test.go @@ -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) |