aboutsummaryrefslogtreecommitdiff
path: root/functional_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'functional_test.go')
-rw-r--r--functional_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/functional_test.go b/functional_test.go
index 61f09bc..20af8fc 100644
--- a/functional_test.go
+++ b/functional_test.go
@@ -12,7 +12,7 @@ import (
)
// Ensure that multiple threads can use the DB without race detector errors.
-func TestParallelTransactions(t *testing.T) {
+func TestParallelTxs(t *testing.T) {
var mutex sync.RWMutex
err := quick.Check(func(numReaders, batchSize uint, items testdata) bool {
@@ -45,7 +45,7 @@ func TestParallelTransactions(t *testing.T) {
go func() {
mutex.RLock()
local := current
- txn, err := db.Transaction()
+ txn, err := db.Tx()
mutex.RUnlock()
if err == ErrDatabaseNotOpen {
wg.Done()
@@ -83,7 +83,7 @@ func TestParallelTransactions(t *testing.T) {
pending = pending[currentBatchSize:]
// Start write transaction.
- txn, err := db.RWTransaction()
+ txn, err := db.RWTx()
if !assert.NoError(t, err) {
t.FailNow()
}