Skip to content

fix(contrib/drivers/mysql): use unreachable port for nodeInvalid test config#4726

Merged
gqcn merged 1 commit into
gogf:masterfrom
lingcoder:fix/mysql-nodeinvalid-port
Mar 24, 2026
Merged

fix(contrib/drivers/mysql): use unreachable port for nodeInvalid test config#4726
gqcn merged 1 commit into
gogf:masterfrom
lingcoder:fix/mysql-nodeinvalid-port

Conversation

@lingcoder

Copy link
Copy Markdown
Contributor

Summary

  • Change nodeInvalid port from 3307 to 3316 (default 3306 + 10) so the connection is guaranteed to fail as intended
  • Port 3307 may collide with a running MariaDB instance in CI, causing nodeInvalid to accidentally connect to a live database

ref #4689

… config

The nodeInvalid config was using port 3307, which may collide with a
running MariaDB instance in CI. Change it to port 3316 (default+10)
so the connection is guaranteed to fail as intended.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the MySQL driver unit test setup to make the nodeInvalid configuration reliably fail to connect in CI, avoiding accidental connections to a running MariaDB/MySQL instance.

Changes:

  • Change nodeInvalid DSN port from 3307 to 3316 to reduce collision risk with services running on common ports.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread contrib/drivers/mysql/mysql_z_unit_init_test.go
Comment thread contrib/drivers/mysql/mysql_z_unit_init_test.go
@gqcn gqcn merged commit f67b2dc into gogf:master Mar 24, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants