diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-08 19:44:10 -0800 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-08 19:44:10 -0800 |
commit | a32d0c5c5f7913f09e2489ba3545a9e2d4865698 (patch) | |
tree | e215bb0cf8df72a53b662ff222c24a973e7faac3 /functional_test.go | |
parent | Add benchmarks. (diff) | |
parent | Rename Transaction to Tx. (diff) | |
download | dedo-a32d0c5c5f7913f09e2489ba3545a9e2d4865698.tar.gz dedo-a32d0c5c5f7913f09e2489ba3545a9e2d4865698.tar.xz |
Merge pull request #60 from benbjohnson/tx
Rename Transaction to Tx.
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 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() } |