diff --git a/cdc/entry/mounter_test.go b/cdc/entry/mounter_test.go index 50121f72584..83ff31e5f2e 100644 --- a/cdc/entry/mounter_test.go +++ b/cdc/entry/mounter_test.go @@ -1316,7 +1316,7 @@ func TestBuildTableInfo(t *testing.T) { }, } p := parser.New() - for _, c := range cases { + for i, c := range cases { stmt, err := p.ParseOneStmt(c.origin, "", "") require.NoError(t, err) originTI, err := ddl.BuildTableInfoFromAST(stmt.(*ast.CreateTableStmt)) @@ -1381,7 +1381,7 @@ func TestNewDMRowChange(t *testing.T) { }, } p := parser.New() - for i, c := range cases { + for _, c := range cases { stmt, err := p.ParseOneStmt(c.origin, "", "") require.NoError(t, err) originTI, err := ddl.BuildTableInfoFromAST(stmt.(*ast.CreateTableStmt))