File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Original file line number Diff line number Diff line change @@ -1321,7 +1321,9 @@ $ FILTER=unit npm test
1321
1321
### Running integration tests
1322
1322
1323
1323
Set the environment variables ` MYSQL_DATABASE ` , ` MYSQL_HOST ` , ` MYSQL_PORT ` ,
1324
- ` MYSQL_USER ` and ` MYSQL_PASSWORD ` . Then run ` npm test ` .
1324
+ ` MYSQL_USER ` and ` MYSQL_PASSWORD ` . ` MYSQL_SOCKET ` can also be used in place
1325
+ of ` MYSQL_HOST ` and ` MYSQL_PORT ` to connect over a UNIX socket. Then run
1326
+ ` npm test ` .
1325
1327
1326
1328
For example, if you have an installation of mysql running on localhost:3306
1327
1329
and no password set for the ` root ` user, run:
Original file line number Diff line number Diff line change @@ -146,10 +146,11 @@ common.getSSLConfig = function() {
146
146
147
147
function mergeTestConfig ( config ) {
148
148
config = common . extend ( {
149
- host : process . env . MYSQL_HOST ,
150
- port : process . env . MYSQL_PORT ,
151
- user : process . env . MYSQL_USER ,
152
- password : process . env . MYSQL_PASSWORD
149
+ host : process . env . MYSQL_HOST ,
150
+ port : process . env . MYSQL_PORT ,
151
+ user : process . env . MYSQL_USER ,
152
+ password : process . env . MYSQL_PASSWORD ,
153
+ socketPath : process . env . MYSQL_SOCKET
153
154
} , config ) ;
154
155
155
156
return config ;
You can’t perform that action at this time.
0 commit comments