Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed Mar 6, 2024
1 parent 3919692 commit 8cc1822
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions integration/source.tf
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ resource "materialize_source_webhook" "example_webhook_source" {
}

resource "materialize_source_mysql" "test" {
name = "source_mysql"
name = "source_mysql"
cluster_name = materialize_cluster.cluster_source.name

mysql_connection {
Expand All @@ -211,7 +211,7 @@ resource "materialize_source_mysql" "test" {
name = "shop.mysql_table2"
alias = "mysql_table2_alias"
}
table {
table {
name = "shop.mysql_table3"
alias = "mysql_table3_alias"
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/resource_source_mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestResourceSourceMySQLCreate(t *testing.T) {
testhelpers.WithMockProviderMeta(t, func(db *utils.ProviderMeta, mock sqlmock.Sqlmock) {
// Create
mock.ExpectExec(
`CREATE SOURCE "database"."schema"."source" IN CLUSTER "cluster" FROM MYSQL CONNECTION "materialize"."public"."mysql_connection" FOR TABLES \(name1 AS alias, name2 AS name2\);`,
`CREATE SOURCE "database"."schema"."source" IN CLUSTER "cluster" FROM MYSQL CONNECTION "materialize"."public"."mysql_connection" FOR TABLES \(name2 AS name2, name1 AS alias\);`,
).WillReturnResult(sqlmock.NewResult(1, 1))

// Query Id
Expand Down

0 comments on commit 8cc1822

Please sign in to comment.