From 025c1f30ff0d4d381dfb90ad7dc61e63730ccdcc Mon Sep 17 00:00:00 2001 From: Simon Ho Date: Tue, 11 Oct 2016 14:23:13 -0700 Subject: [PATCH] Remove unused prefix for test env vars (#203) (#204) * TEST_ prefix is not used by CI anymore and there for serve no purpose * Part of overall goal to standardize env var injection to MODULE_VARNAME (ie. MYSQL_HOST for example) convention Backport of #203 --- test/init.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/init.js b/test/init.js index 5dad0e5..dcf698e 100644 --- a/test/init.js +++ b/test/init.js @@ -13,10 +13,8 @@ var config = require('rc')('loopback', {test: {mysql: {}}}).test.mysql; console.log(config); global.getConfig = function(options) { var dbConf = { - host: process.env.TEST_MYSQL_HOST || process.env.MYSQL_HOST || - config.host || 'localhost', - port: process.env.TEST_MYSQL_PORT || process.env.MYSQL_PORT || - config.port || 3306, + host: process.env.MYSQL_HOST || config.host || 'localhost', + port: process.env.MYSQL_PORT || config.port || 3306, database: 'myapp_test', username: process.env.MYSQL_USER || config.username, password: process.env.MYSQL_PASSWORD || config.password,