diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-21 10:21:47 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-21 10:21:47 -0600 |
commit | 2eea5766aee5a0087d8ee98759b1804af4bc87c7 (patch) | |
tree | f5b3993dd328b6896b57f954e4fc37125054ce97 /functional_test.go | |
parent | Merge pull request #65 from benbjohnson/fix-tx-buckets-sort-order (diff) | |
parent | Remove ease-of-use functions from the DB type. (diff) | |
download | dedo-2eea5766aee5a0087d8ee98759b1804af4bc87c7.tar.gz dedo-2eea5766aee5a0087d8ee98759b1804af4bc87c7.tar.xz |
Merge pull request #68 from benbjohnson/remove-db-functions
Remove ease-of-use functions from the DB type.
Diffstat (limited to 'functional_test.go')
-rw-r--r-- | functional_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/functional_test.go b/functional_test.go index 41bffd6..866ec95 100644 --- a/functional_test.go +++ b/functional_test.go @@ -28,7 +28,9 @@ func TestParallelTxs(t *testing.T) { var current testdata withOpenDB(func(db *DB, path string) { - db.CreateBucket("widgets") + db.Do(func(tx *Tx) error { + return tx.CreateBucket("widgets") + }) // Maintain a set of concurrent readers. var wg sync.WaitGroup |