diff --git a/test/init.js b/test/init.js index 83bd213..1bfb10c 100644 --- a/test/init.js +++ b/test/init.js @@ -7,8 +7,8 @@ var config = require('rc')('loopback', {test: {mysql: {}}}).test.mysql; global.getConfig = function (options) { var dbConf = { - host: config.host || 'localhost', - port: config.port || 3306, + host: process.env.MYSQL_HOST || config.host || 'localhost', + port: process.env.MYSQL_PORT || config.port || 3306, database: 'myapp_test', username: config.username, password: config.password,