diff options
Diffstat (limited to 'cmd/bolt/get_test.go')
-rw-r--r-- | cmd/bolt/get_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/bolt/get_test.go b/cmd/bolt/get_test.go index d491971..7b7c3a0 100644 --- a/cmd/bolt/get_test.go +++ b/cmd/bolt/get_test.go @@ -45,7 +45,8 @@ func TestGetKeyNotFound(t *testing.T) { SetTestMode(true) open(func(db *bolt.DB, path string) { db.Update(func(tx *bolt.Tx) error { - return tx.CreateBucket([]byte("widgets")) + _, err := tx.CreateBucket([]byte("widgets")) + return err }) db.Close() output := run("get", path, "widgets", "foo") |