Skip to content

Commit

Permalink
remove dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Sep 12, 2024
1 parent 3536134 commit 23f2d36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions go/vt/schemadiff/onlineddl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"github.com/stretchr/testify/require"

"vitess.io/vitess/go/mysql"
"vitess.io/vitess/go/vt/schema"
"vitess.io/vitess/go/vt/sqlparser"
)

Expand Down Expand Up @@ -996,7 +995,7 @@ func TestValidateAndEditCreateTableStatement(t *testing.T) {
constraint test_ibfk foreign key (parent_id) references onlineddl_test_parent (id) on delete no action
)
`,
expectError: schema.ErrForeignKeyFound.Error(),
expectError: ErrForeignKeyFound.Error(),
},
{
name: "table with FK, allowed",
Expand Down Expand Up @@ -1211,8 +1210,9 @@ func TestValidateAndEditAlterTableStatement(t *testing.T) {
tc.mySQLVersion = testMySQLVersion
}
capableOf := mysql.ServerVersionCapableOf(tc.mySQLVersion)
onlineDDL := &schema.OnlineDDL{UUID: "a5a563da_dc1a_11ec_a416_0a43f95f28a3", Table: "t"}
alters, err := ValidateAndEditAlterTableStatement(onlineDDL.Table, onlineDDL.UUID, capableOf, alterTable, m)
baseUUID := "a5a563da_dc1a_11ec_a416_0a43f95f28a3"
tableName := "t"
alters, err := ValidateAndEditAlterTableStatement(tableName, baseUUID, capableOf, alterTable, m)
assert.NoError(t, err)
var altersStrings []string
for _, alter := range alters {
Expand Down

0 comments on commit 23f2d36

Please sign in to comment.