Skip to content

Commit

Permalink
added prefix to test tables
Browse files Browse the repository at this point in the history
Signed-off-by: hillium <yujuncen@pingcap.com>
  • Loading branch information
YuJuncen committed Jan 15, 2024
1 parent a82b59c commit ccdd36b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/executor/brie_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func TestBRIECreateTables(t *testing.T) {
tk.MustExec("use test")
tableInfos := make([]*model.TableInfo, 100)
for i := range tableInfos {
tk.MustExec(fmt.Sprintf("drop table if exists table_%d", i))
tk.MustExec(fmt.Sprintf("drop table if exists TestBRIECreateTables_table_%d", i))
}

d := dom.DDL()
Expand All @@ -309,14 +309,14 @@ func TestBRIECreateTables(t *testing.T) {
sctx := tk.Session()
originQueryString := sctx.Value(sessionctx.QueryString)
for i := range tableInfos {
tableInfos[i] = mockTableInfo(t, sctx, fmt.Sprintf("create table test.table_%d (a int primary key, b json, c varchar(20))", i))
tableInfos[i] = mockTableInfo(t, sctx, fmt.Sprintf("create table test.TestBRIECreateTables_table_%d (a int primary key, b json, c varchar(20))", i))
tableInfos[i].ID = 1230 + int64(i)
}
err := executor.BRIECreateTables(sctx, map[string][]*model.TableInfo{"test": tableInfos}, "/* from test */")
require.NoError(t, err)

require.Equal(t, originQueryString, sctx.Value(sessionctx.QueryString))
for i := range tableInfos {
tk.MustExec(fmt.Sprintf("desc table_%d", i))
tk.MustExec(fmt.Sprintf("desc TestBRIECreateTables_table_%d", i))
}
}

0 comments on commit ccdd36b

Please sign in to comment.