From 84490466be847f41a77f1fb11d7d6233bac510dd Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Thu, 8 Jul 2021 09:40:17 +0200 Subject: [PATCH] kvdb/test: remove invalid operations Accessing buckets that have been removed is not an allowed operation. --- kvdb/readwrite_bucket_test.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/kvdb/readwrite_bucket_test.go b/kvdb/readwrite_bucket_test.go index 1927f8dc..6d3dd705 100644 --- a/kvdb/readwrite_bucket_test.go +++ b/kvdb/readwrite_bucket_test.go @@ -151,15 +151,6 @@ func testBucketDeletion(t *testing.T, db walletdb.DB) { // "apple/pear" deleted 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 require.NotNil(t, apple.NestedReadWriteBucket([]byte("banana"))) return nil