From ca7e1424a4220a8c349fb8512e6c9976e1439d92 Mon Sep 17 00:00:00 2001 From: Agnes Lin Date: Sun, 11 Apr 2021 22:32:08 -0400 Subject: [PATCH] ci: socket Signed-off-by: Agnes Lin --- pretest.js | 2 +- test/init.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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',