kvdb/test: remove invalid operations

Accessing buckets that have been removed is not an allowed operation.
This commit is contained in:
Joost Jager 2021-07-08 09:40:17 +02:00
parent 3c6d35ec41
commit 84490466be
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -151,15 +151,6 @@ func testBucketDeletion(t *testing.T, db walletdb.DB) {
// "apple/pear" deleted // "apple/pear" deleted
require.Nil(t, apple.NestedReadWriteBucket([]byte("pear"))) require.Nil(t, apple.NestedReadWriteBucket([]byte("pear")))
// "apple/pear/cherry" deleted
require.Nil(t, pear.NestedReadWriteBucket([]byte("cherry")))
// Values deleted too.
for _, kv := range kvs {
require.Nil(t, pear.Get([]byte(kv.key)))
require.Nil(t, cherry.Get([]byte(kv.key)))
}
// "aple/banana" exists // "aple/banana" exists
require.NotNil(t, apple.NestedReadWriteBucket([]byte("banana"))) require.NotNil(t, apple.NestedReadWriteBucket([]byte("banana")))
return nil return nil