diff --git a/pretest.js b/pretest.js index 5b3e857..5a27b3c 100644 --- a/pretest.js +++ b/pretest.js @@ -12,7 +12,7 @@ if (!process.env.CI) { process.env.MYSQL_HOST = process.env.MYSQL_HOST || process.env.MYSQL_HOST || 'localhost'; process.env.MYSQL_PORT = - process.env.MYSQL_PORT || process.env.MYSQL_PORT || 3307; + process.env.MYSQL_PORT || process.env.MYSQL_PORT || 3306; process.env.MYSQL_USER = process.env.MYSQL_USER || process.env.MYSQL_USER || 'root'; process.env.MYSQL_PASSWORD = diff --git a/test/init.js b/test/init.js index 6bba46c..9e89cda 100644 --- a/test/init.js +++ b/test/init.js @@ -13,7 +13,7 @@ const config = require('rc')('loopback', {test: {mysql: {}}}).test.mysql; global.getConfig = function(options) { const dbConf = { host: process.env.MYSQL_HOST || config.host || 'localhost', - port: process.env.MYSQL_PORT || config.port || 3307, + port: process.env.MYSQL_PORT || config.port || 3306, database: process.env.MYSQL_DATABASE || 'testdb', username: process.env.MYSQL_USER || config.username || 'root', password: process.env.MYSQL_PASSWORD || config.password || 'root',