Fix dbtest util (#10403)

This commit is contained in:
Roy Crihfield 2021-10-19 21:52:49 +08:00 committed by GitHub
parent 85eed1f359
commit 2cbdf8f49b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) {