diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-24 11:46:58 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-24 11:46:58 -0600 |
commit | 2bc868c4663468c38aa5d5523138b8837993db8a (patch) | |
tree | f264bf174c0ca41218a9cd40025ab90aeaf56ad4 /functional_test.go | |
parent | Merge pull request #87 from benbjohnson/errors (diff) | |
parent | Make DB/Tx API more consistent. (diff) | |
download | dedo-2bc868c4663468c38aa5d5523138b8837993db8a.tar.gz dedo-2bc868c4663468c38aa5d5523138b8837993db8a.tar.xz |
Merge pull request #88 from benbjohnson/tx-rename
Make DB/Tx API more consistent.
Diffstat (limited to 'functional_test.go')
-rw-r--r-- | functional_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/functional_test.go b/functional_test.go index 866ec95..6ca75b8 100644 --- a/functional_test.go +++ b/functional_test.go @@ -28,7 +28,7 @@ func TestParallelTxs(t *testing.T) { var current testdata withOpenDB(func(db *DB, path string) { - db.Do(func(tx *Tx) error { + db.Update(func(tx *Tx) error { return tx.CreateBucket("widgets") }) @@ -51,7 +51,7 @@ func TestParallelTxs(t *testing.T) { go func() { mutex.RLock() local := current - tx, err := db.Tx() + tx, err := db.Begin(false) mutex.RUnlock() if err == ErrDatabaseNotOpen { wg.Done() @@ -89,7 +89,7 @@ func TestParallelTxs(t *testing.T) { pending = pending[currentBatchSize:] // Start write transaction. - tx, err := db.RWTx() + tx, err := db.Begin(true) if !assert.NoError(t, err) { t.FailNow() } |