diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-11 14:59:46 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-11 14:59:46 -0600 |
commit | 10fed5f74d44caad8f777a38db735ebb7fb3e65b (patch) | |
tree | 125c24e03c653417ce8bf5965b7fbcbeb2dedb04 /cmd/bolt/get_test.go | |
parent | Merge branch 'master' into nested-keys (diff) | |
download | dedo-10fed5f74d44caad8f777a38db735ebb7fb3e65b.tar.gz dedo-10fed5f74d44caad8f777a38db735ebb7fb3e65b.tar.xz |
Upgrade import/export to use nested buckets.
Diffstat (limited to 'cmd/bolt/get_test.go')
-rw-r--r-- | cmd/bolt/get_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/bolt/get_test.go b/cmd/bolt/get_test.go index 09883d4..d491971 100644 --- a/cmd/bolt/get_test.go +++ b/cmd/bolt/get_test.go @@ -13,8 +13,8 @@ func TestGet(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("foo"), []byte("bar")) + tx.CreateBucket([]byte("widgets")) + tx.Bucket([]byte("widgets")).Put([]byte("foo"), []byte("bar")) return nil }) db.Close() @@ -45,7 +45,7 @@ func TestGetKeyNotFound(t *testing.T) { SetTestMode(true) open(func(db *bolt.DB, path string) { db.Update(func(tx *bolt.Tx) error { - return tx.CreateBucket("widgets") + return tx.CreateBucket([]byte("widgets")) }) db.Close() output := run("get", path, "widgets", "foo") |