Reset service local

This commit is contained in:
Anthony Laibe 2018-07-31 11:17:50 +01:00 committed by Iuri Matias
parent 24aecc553b
commit 71c5b75198
1 changed files with 3 additions and 3 deletions

View File

@ -179,7 +179,7 @@ class Test {
checkDeploymentOptions(options, callback) { checkDeploymentOptions(options, callback) {
const self = this; const self = this;
self.resetServices = false; let resetServices = false;
const {host, port, type, accounts} = options.deployment || {}; const {host, port, type, accounts} = options.deployment || {};
if (host && port && !['rpc', 'ws'].includes(type)) { if (host && port && !['rpc', 'ws'].includes(type)) {
@ -187,7 +187,7 @@ class Test {
} }
if(accounts || port !== this.simOptions.port || type !== this.simOptions.type || host !== this.simOptions.host) { if(accounts || port !== this.simOptions.port || type !== this.simOptions.type || host !== this.simOptions.host) {
self.resetServices = true; resetServices = true;
} }
if (accounts) { if (accounts) {
self.simOptions.accounts = AccountParser.parseAccountsConfig(accounts, self.web3); self.simOptions.accounts = AccountParser.parseAccountsConfig(accounts, self.web3);
@ -201,7 +201,7 @@ class Test {
type type
}); });
if (!self.resetServices && !self.firstRunConfig) { if (!resetServices && !self.firstRunConfig) {
return callback(); return callback();
} }