Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kumakichi authored and morlay committed Mar 6, 2022
1 parent 0adc6b2 commit cfeef6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion builder/def_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ WHERE t_user.f_id > 1

gomega.NewWithT(t).Expect(exprs).To(gomega.Equal([]string{
"ALTER TABLE t_user DROP CONSTRAINT t_user_pkey;",
"DROP INDEX IF EXISTS t_user_f_name",
"DROP INDEX IF EXISTS t_user_f_name;",
}))
})
})
Expand Down
4 changes: 2 additions & 2 deletions connectors/mysql/mysql_connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ func TestMysqlConnector(t *testing.T) {

t.Run("CreateDatabase", func(t *testing.T) {
gomega.NewWithT(t).Expect(c.CreateDatabase("db")).
To(buidertestingutils.BeExpr( /* language=MySQL */ `CREATE DATABASE db;`))
To(buidertestingutils.BeExpr( /* language=MySQL */ "CREATE DATABASE `db`;"))
})
t.Run("DropDatabase", func(t *testing.T) {
gomega.NewWithT(t).Expect(c.DropDatabase("db")).
To(buidertestingutils.BeExpr( /* language=MySQL */ `DROP DATABASE db;`))
To(buidertestingutils.BeExpr( /* language=MySQL */ "DROP DATABASE `db`;"))
})
t.Run("AddIndex", func(t *testing.T) {
gomega.NewWithT(t).Expect(c.AddIndex(table.Key("I_name"))).
Expand Down

0 comments on commit cfeef6a

Please sign in to comment.