use of com.pingcap.tikv.TiConfiguration in project tispark by pingcap.
the class LockResolverTest method setUp.
@Before
public void setUp() {
TiConfiguration conf = TiConfiguration.createDefault(getPdAddr());
conf.setIsolationLevel(isolationLevel);
try {
session = TiSession.getInstance(conf);
this.builder = session.getRegionStoreClientBuilder();
init = true;
} catch (Exception e) {
init = false;
fail("TiDB cluster may not be present");
}
}
Aggregations