From 2cbdf8f49be35ef4dd1b263d3b4a61809cf8397f Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Tue, 19 Oct 2021 21:52:49 +0800 Subject: [PATCH] Fix dbtest util (#10403) --- db/dbtest/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/dbtest/util.go b/db/dbtest/util.go index 2ddb91929..e57c13afa 100644 --- a/db/dbtest/util.go +++ b/db/dbtest/util.go @@ -23,8 +23,8 @@ func AssertDomain(t *testing.T, itr dbm.Iterator, start, end []byte) { func AssertItem(t *testing.T, itr dbm.Iterator, key, value []byte) { t.Helper() - assert.Exactly(t, itr.Key(), k) - assert.Exactly(t, itr.Value(), v) + assert.Exactly(t, key, itr.Key()) + assert.Exactly(t, value, itr.Value()) } func AssertInvalid(t *testing.T, itr dbm.Iterator) {