Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Harshit Gangal <[email protected]>
  • Loading branch information
harshit-gangal committed Aug 7, 2023
1 parent d5341a0 commit e927865
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
9 changes: 2 additions & 7 deletions go/test/endtoend/vtgate/foreignkey/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ var (
clusterInstance *cluster.LocalProcessCluster
vtParams mysql.ConnParams
shardedKs = "ks"
shardedKsShards = []string{"-19a0", "19a0-20", "20-20c0", "20c0-"}
Cell = "test"

//go:embed sharded_schema.sql
shardedSchemaSQL string

Expand Down Expand Up @@ -65,12 +65,7 @@ func TestMain(m *testing.M) {
VSchema: shardedVSchema,
}

err = clusterInstance.StartKeyspace(*sKs, shardedKsShards, 0, false)
if err != nil {
return 1
}

err = clusterInstance.VtctlclientProcess.ExecuteCommand("RebuildVSchemaGraph")
err = clusterInstance.StartKeyspace(*sKs, []string{"-80", "80-"}, 0, false)
if err != nil {
return 1
}
Expand Down
4 changes: 2 additions & 2 deletions go/vt/sqlparser/ast_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2495,8 +2495,8 @@ func (ty KillType) ToString() string {
}
}

// Indexes returns true,
// if the list of columns contains all the elements in the other list provided along with their indexes.
// Indexes returns true, if the list of columns contains all the elements in the other list.
// It also returns the indexes of the columns in the list.
func (cols Columns) Indexes(subSetCols Columns) (bool, []int) {
var indexes []int
for _, subSetCol := range subSetCols {
Expand Down
2 changes: 1 addition & 1 deletion go/vt/vtgate/planbuilder/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TestForeignKeyPlanning(t *testing.T) {
}
testOutputTempDir := makeTestOutput(t)

testFile(t, "fk_cases.json", testOutputTempDir, vschemaWrapper, false)
testFile(t, "foreignkey_cases.json", testOutputTempDir, vschemaWrapper, false)
}

func TestSystemTables57(t *testing.T) {
Expand Down

0 comments on commit e927865

Please sign in to comment.