diff options
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") |