Skip to content

Commit

Permalink
*: fix bind test for information schema v2 (#51958)
Browse files Browse the repository at this point in the history
ref #50959
  • Loading branch information
ywqzzy committed Mar 21, 2024
1 parent 956d22e commit e03da4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/bindinfo/capture_test.go
Expand Up @@ -290,7 +290,8 @@ func TestCapturePlanBaselineIgnoreTiFlash(t *testing.T) {
is := domSession.InfoSchema()
db, exists := is.SchemaByName(model.NewCIStr("test"))
require.True(t, exists)
for _, tblInfo := range db.Tables {
for _, tbl := range is.SchemaTables(db.Name) {
tblInfo := tbl.Meta()
if tblInfo.Name.L == "t" {
tblInfo.TiFlashReplica = &model.TiFlashReplicaInfo{
Count: 1,
Expand Down
3 changes: 2 additions & 1 deletion pkg/bindinfo/tests/bind_test.go
Expand Up @@ -570,7 +570,8 @@ func TestBindingWithIsolationRead(t *testing.T) {
is := dom.InfoSchema()
db, exists := is.SchemaByName(model.NewCIStr("test"))
require.True(t, exists)
for _, tblInfo := range db.Tables {
for _, tbl := range is.SchemaTables(db.Name) {
tblInfo := tbl.Meta()
if tblInfo.Name.L == "t" {
tblInfo.TiFlashReplica = &model.TiFlashReplicaInfo{
Count: 1,
Expand Down

0 comments on commit e03da4d

Please sign in to comment.