package template

import (
	"testing"

	. "github.com/pingcap/tidb-test/large_txn"
)

func TestT(t *testing.T) {
	// You can fill all the config content as you wish.
	conf := &Config{
		Conn: DefaultConnConfig(),
		Prepare: PrepareConfig{
			WorkerCount: 4,
			Task: BasePrepareTask{
				InsertCount:    1000,
				RowsEachInsert: 50,
			},
		},
		Run: RunConfig{
			Large: LargeTxnConfig{
				TxnMode: Pessimistic,
				Task:    LargeUpdate{},
			},
			Small: SmallTxnConfig{
				WorkerCount: 6,
				TxnMode:     Optimistic,
				Task:        SelectRandomPoints{},
			},
		},
		Clean: BaseCleanTask{},
	}

	RunTest(conf)
}
