From 57376f090503d7ef5bc38f138e58e64bdea284a3 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Sat, 8 Mar 2014 17:01:49 -0700 Subject: Rename Transaction to Tx. I changed the Transaction/RWTransaction types to Tx/RWTx, respectively. This makes the naming more consistent with other packages such as database/sql. The txnid is changed to txid as well. --- functional_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'functional_test.go') 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() } -- cgit v1.2.3