ci: socket

Signed-off-by: Agnes Lin <agneslin.lin@ibm.com>
This commit is contained in:
Agnes Lin 2021-04-11 22:32:08 -04:00
parent 6be5213d04
commit ca7e1424a4
2 changed files with 2 additions and 2 deletions

View File

@ -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 =

View File

@ -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',