Remove unused prefix for test env vars (#203)

* 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
This commit is contained in:
Simon Ho 2016-10-07 17:36:43 -07:00 committed by GitHub
parent bbd4369308
commit 8ed53f6cfa
1 changed files with 2 additions and 4 deletions

View File

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