Skip to content

Commit

Permalink
Fix dbtest util
Browse files Browse the repository at this point in the history
  • Loading branch information
roysc committed Oct 19, 2021
1 parent 85eed1f commit 305075c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/dbtest/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 305075c

Please sign in to comment.