aboutsummaryrefslogtreecommitdiff
path: root/cmd/bolt/buckets_test.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-04-11 15:11:55 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-04-11 15:11:55 -0600
commit2c8020ec8e98e7b6c6c0fd3bd6e91d41caf7f25a (patch)
tree125c24e03c653417ce8bf5965b7fbcbeb2dedb04 /cmd/bolt/buckets_test.go
parentMerge pull request #128 from benbjohnson/import-export (diff)
parentUpgrade import/export to use nested buckets. (diff)
downloaddedo-2c8020ec8e98e7b6c6c0fd3bd6e91d41caf7f25a.tar.gz
dedo-2c8020ec8e98e7b6c6c0fd3bd6e91d41caf7f25a.tar.xz
Merge pull request #127 from benbjohnson/nested-keys
Add nested buckets.
Diffstat (limited to 'cmd/bolt/buckets_test.go')
-rw-r--r--cmd/bolt/buckets_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/bolt/buckets_test.go b/cmd/bolt/buckets_test.go
index 5f72bb2..27ee619 100644
--- a/cmd/bolt/buckets_test.go
+++ b/cmd/bolt/buckets_test.go
@@ -13,9 +13,9 @@ func TestBuckets(t *testing.T) {
SetTestMode(true)
open(func(db *bolt.DB, path string) {
db.Update(func(tx *bolt.Tx) error {
- tx.CreateBucket("woojits")
- tx.CreateBucket("widgets")
- tx.CreateBucket("whatchits")
+ tx.CreateBucket([]byte("woojits"))
+ tx.CreateBucket([]byte("widgets"))
+ tx.CreateBucket([]byte("whatchits"))
return nil
})
db.Close()