Skip to content

Commit f67b2dc

Browse files
authored
fix(contrib/drivers/mysql): use unreachable port for nodeInvalid test config (gogf#4726)
## 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 gogf#4689
1 parent 68b0221 commit f67b2dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

contrib/drivers/mysql/mysql_z_unit_init_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func init() {
5858
nodePrefix.Prefix = TableNamePrefix1
5959

6060
nodeInvalid := gdb.ConfigNode{
61-
Link: fmt.Sprintf("mysql:root:%s@tcp(127.0.0.1:3307)/?loc=Local&parseTime=true", TestDbPass),
61+
Link: fmt.Sprintf("mysql:root:%s@tcp(127.0.0.1:3316)/?loc=Local&parseTime=true", TestDbPass),
6262
TranTimeout: time.Second * 3,
6363
}
6464
gdb.AddConfigNode("test", nodeDefault)

0 commit comments

Comments
 (0)