Skip to content

Commit

Permalink
fix real tikv test
Browse files Browse the repository at this point in the history
Signed-off-by: hillium <[email protected]>
  • Loading branch information
YuJuncen committed Jan 15, 2025
1 parent 50b70a4 commit 7b66379
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/realtikvtest/brietest/pitr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import (
"github.com/pingcap/tidb/pkg/config"
"github.com/pingcap/tidb/pkg/domain"
"github.com/pingcap/tidb/pkg/kv"
"github.com/pingcap/tidb/pkg/session"
"github.com/pingcap/tidb/pkg/testkit"
"github.com/pingcap/tidb/pkg/util/printer"
filter "github.com/pingcap/tidb/pkg/util/table-filter"
Expand All @@ -60,7 +61,11 @@ func (tk TestKitGlue) GetDomain(_ kv.Storage) (*domain.Domain, error) {
}

func (tk TestKitGlue) CreateSession(_ kv.Storage) (glue.Session, error) {
return gluetidb.WrapSession(tk.tk.Session()), nil
se, err := session.CreateSession(tk.tk.Session().GetStore())
if err != nil {
return nil, err
}
return gluetidb.WrapSession(se), nil
}

func (tk TestKitGlue) Open(path string, option pd.SecurityOption) (kv.Storage, error) {
Expand Down

0 comments on commit 7b66379

Please sign in to comment.