Skip to content

Commit

Permalink
fix tidb 4.0 api
Browse files Browse the repository at this point in the history
  • Loading branch information
amyangfei committed May 19, 2021
1 parent 3ad2b65 commit 2c384d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cdc/kv/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3114,7 +3114,9 @@ func (s *etcdSuite) TestConcurrentProcessRangeRequest(c *check.C) {
wg.Wait()
}()

rpcClient, cluster, pdClient, err := mocktikv.NewTiKVAndPDClient("", mockcopr.NewCoprRPCHandler())
cluster := mocktikv.NewCluster()
mvccStore := mocktikv.MustNewMVCCStore()
rpcClient, pdClient, err := mocktikv.NewTiKVAndPDClient(cluster, mvccStore, "")
c.Assert(err, check.IsNil)
pdClient = &mockPDClient{Client: pdClient, versionGen: defaultVersionGen}
tiStore, err := tikv.NewTestTiKVStore(rpcClient, pdClient, nil, nil, 0)
Expand All @@ -3133,9 +3135,9 @@ func (s *etcdSuite) TestConcurrentProcessRangeRequest(c *check.C) {
defer func() {
_ = failpoint.Disable("github.com/pingcap/ticdc/cdc/kv/kvClientMockRangeLock")
}()
lockresolver := txnutil.NewLockerResolver(kvStorage)
lockresolver := txnutil.NewLockerResolver(kvStorage.(tikv.Storage))
isPullInit := &mockPullerInit{}
cdcClient := NewCDCClient(ctx, pdClient, kvStorage, &security.Credential{})
cdcClient := NewCDCClient(ctx, pdClient, kvStorage.(tikv.Storage), &security.Credential{})
eventCh := make(chan *model.RegionFeedEvent, 10)
wg.Add(1)
go func() {
Expand Down

0 comments on commit 2c384d1

Please sign in to comment.