Skip to content

Commit

Permalink
fix addr
Browse files Browse the repository at this point in the history
Signed-off-by: wjhuang2016 <[email protected]>
  • Loading branch information
wjhuang2016 committed Mar 29, 2024
1 parent d2d2942 commit 53e5f32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion framework/mainloop.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type CaseConfig struct {
MySQLCompatible bool
TablesToCreate int
TestTp DDLTestType
dbAddr string
}

var globalBugSeqNum int64 = 0
Expand Down Expand Up @@ -564,7 +565,9 @@ func (c *testCase) execute(ctx context.Context) error {

tableMetas := make([]*model.TableInfo, 0)
for i := 0; i < len(state.Tables); i++ {
path := fmt.Sprintf("127.0.0.1:10080/schema/%s/%s", c.initDB, state.Tables[i].Name)
addr := c.cfg.dbAddr
stateAddr := strings.Replace(addr, "4000", "10080", -1)
path := fmt.Sprintf("%d/schema/%s/%s", stateAddr, c.initDB, state.Tables[i].Name)
rawMeta, err := exec.Command("curl", path).Output()
if err != nil {
log.Infof("curl error %s", err.Error())
Expand Down
1 change: 1 addition & 0 deletions framework/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func Run(dbAddr string, dbName string, concurrency int, tablesToCreate int, mysq
TablesToCreate: tablesToCreate,
MySQLCompatible: mysqlCompatible,
TestTp: testTp,
dbAddr: dbAddr,
}
ddl := NewDDLCase(&cfg)
if RCIsolation {
Expand Down

0 comments on commit 53e5f32

Please sign in to comment.