Search in sources :

Example 1 with KVMockServer

use of com.pingcap.tikv.KVMockServer in project tispark by pingcap.

the class CatalogTest method setUp.

@Before
@Override
public void setUp() throws IOException {
    super.setUp();
    kvServer = new KVMockServer();
    kvServer.start(new TiRegion(MetaMockHelper.region, MetaMockHelper.region.getPeers(0), IsolationLevel.RC, CommandPri.Low));
}
Also used : KVMockServer(com.pingcap.tikv.KVMockServer) TiRegion(com.pingcap.tikv.region.TiRegion) Before(org.junit.Before)

Aggregations

KVMockServer (com.pingcap.tikv.KVMockServer)1 TiRegion (com.pingcap.tikv.region.TiRegion)1 Before (org.junit.Before)1