From 55bb028a13142dc645b5a59637e6411911fdef0e Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 5 Sep 2018 12:35:45 -0400 Subject: [PATCH] add test too --- lib/core/config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/config.js b/lib/core/config.js index a56e33c2f..0c9aa15cf 100644 --- a/lib/core/config.js +++ b/lib/core/config.js @@ -183,10 +183,11 @@ Config.prototype.loadBlockchainConfigFile = function() { if (!configFilePath) { this.blockchainConfig.default = true; } - if(!this.blockchainConfig.account && !this.blockchainConfig.isDev && this.env !== 'development') { + if (!this.blockchainConfig.account && !this.blockchainConfig.isDev && + this.env !== 'development' && this.env !== 'test') { this.logger.warn( __('Account settings are needed for this chain.' + - ' Please put a valid address and possibly a password in your blockchain config or use a dev chain.') + ' Please put a valid address and possibly a password in your blockchain config or use a dev chain.') ); } };