aboutsummaryrefslogtreecommitdiff
path: root/functional_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'functional_test.go')
-rw-r--r--functional_test.go4
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