Skip to content

Commit

Permalink
fix: typos at test cases (#265)
Browse files Browse the repository at this point in the history
Fix port and host typo at test cases
  • Loading branch information
Yuan325 authored Feb 4, 2025
1 parent a402c9e commit b7c5661
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions internal/sources/mysql/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestParseFromYamlCloudSQLMySQL(t *testing.T) {
my-mysql-instance:
kind: mysql
host: 0.0.0.0
port: my-host
port: my-port
database: my_db
user: my_user
password: my_pass
Expand All @@ -47,7 +47,7 @@ func TestParseFromYamlCloudSQLMySQL(t *testing.T) {
Name: "my-mysql-instance",
Kind: mysql.SourceKind,
Host: "0.0.0.0",
Port: "my-host",
Port: "my-port",
Database: "my_db",
User: "my_user",
Password: "my_pass",
Expand Down Expand Up @@ -86,7 +86,7 @@ func TestFailParseFromYaml(t *testing.T) {
my-mysql-instance:
kind: mysql
host: 0.0.0.0
port: my-host
port: my-port
database: my_db
user: my_user
password: my_pass
Expand All @@ -100,7 +100,7 @@ func TestFailParseFromYaml(t *testing.T) {
sources:
my-mysql-instance:
kind: mysql
port: my-host
port: my-port
database: my_db
user: my_user
password: my_pass
Expand Down
8 changes: 4 additions & 4 deletions internal/sources/postgres/postgres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestParseFromYamlPostgres(t *testing.T) {
my-pg-instance:
kind: postgres
host: my-host
port: 0.0.0.0
port: my-port
database: my_db
user: my_user
password: my_pass
Expand All @@ -47,7 +47,7 @@ func TestParseFromYamlPostgres(t *testing.T) {
Name: "my-pg-instance",
Kind: postgres.SourceKind,
Host: "my-host",
Port: "0.0.0.0",
Port: "my-port",
Database: "my_db",
User: "my_user",
Password: "my_pass",
Expand Down Expand Up @@ -86,7 +86,7 @@ func TestFailParseFromYaml(t *testing.T) {
my-pg-instance:
kind: postgres
host: my-host
port: 0.0.0.0
port: my-port
database: my_db
user: my_user
password: my_pass
Expand All @@ -101,7 +101,7 @@ func TestFailParseFromYaml(t *testing.T) {
my-pg-instance:
kind: postgres
host: my-host
port: 0.0.0.0
port: my-port
database: my_db
user: my_user
`,
Expand Down

0 comments on commit b7c5661

Please sign in to comment.