Skip to content

Commit 20aaf66

Browse files
committed
fix: empty username and password in go driver test
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
1 parent 7fa8705 commit 20aaf66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

go-tests/ingester_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func setupMySQLConn(t *testing.T) *sql.DB {
7777
if username != "" && password != "" {
7878
dsn = fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?parseTime=true", username, password, host, port, database)
7979
} else {
80-
dsn = fmt.Sprintf("@tcp(%s:%s)/%s?parseTime=true", host, port, database)
80+
dsn = fmt.Sprintf("tcp(%s:%s)/%s?parseTime=true", host, port, database)
8181
}
8282

8383
db, err := sql.Open("mysql", dsn)

0 commit comments

Comments
 (0)