diff options
Diffstat (limited to 'cmd/bolt/keys_test.go')
-rw-r--r-- | cmd/bolt/keys_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/bolt/keys_test.go b/cmd/bolt/keys_test.go index ea530f6..2b5a9a0 100644 --- a/cmd/bolt/keys_test.go +++ b/cmd/bolt/keys_test.go @@ -13,10 +13,10 @@ func TestKeys(t *testing.T) { SetTestMode(true) open(func(db *bolt.DB, path string) { db.Update(func(tx *bolt.Tx) error { - tx.CreateBucket("widgets") - tx.Bucket("widgets").Put([]byte("0002"), []byte("")) - tx.Bucket("widgets").Put([]byte("0001"), []byte("")) - tx.Bucket("widgets").Put([]byte("0003"), []byte("")) + tx.CreateBucket([]byte("widgets")) + tx.Bucket([]byte("widgets")).Put([]byte("0002"), []byte("")) + tx.Bucket([]byte("widgets")).Put([]byte("0001"), []byte("")) + tx.Bucket([]byte("widgets")).Put([]byte("0003"), []byte("")) return nil }) db.Close() |