kvdb/test: remove invalid operations
Accessing buckets that have been removed is not an allowed operation.
This commit is contained in:
parent
3c6d35ec41
commit
84490466be
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user