Skip to content

Commit

Permalink
re-write default config for mysql tests (#11218)
Browse files Browse the repository at this point in the history
  • Loading branch information
fearful-symmetry authored Mar 13, 2019
1 parent c85b904 commit c7ec7d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions metricbeat/module/mysql/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ func GetMySQLEnvDSN() string {
dsn := os.Getenv("MYSQL_DSN")

if len(dsn) == 0 {
c := &mysql.Config{
Net: "tcp",
Addr: "127.0.0.1:3306",
User: "root",
}
c := mysql.NewConfig()
c.Net = "tcp"
c.Addr = "127.0.0.1:3306"
c.User = "root"
c.Passwd = "test"
dsn = c.FormatDSN()
}
return dsn
Expand Down

0 comments on commit c7ec7d4

Please sign in to comment.