db: goleveldb iterator

This commit is contained in:
Ethan Buchman
2017-12-12 20:38:03 -05:00
parent 39e40ff5ce
commit 3e5dbef6a2
3 changed files with 23 additions and 21 deletions

View File

@ -50,7 +50,7 @@ func TestPrefixIteratorMatch3(t *testing.T) {
t.Run(fmt.Sprintf("Prefix w/ backend %s", backend), func(t *testing.T) {
db := newTempDB(t, backend)
db.SetSync(bz("3"), bz("value_3"))
itr := IteratePrefix(db, []byte("2"))
itr := IteratePrefix(db, []byte("4"))
// Once invalid...
checkInvalid(t, itr)