mirror of https://github.com/embarklabs/embark.git
Reset service local
This commit is contained in:
parent
24aecc553b
commit
71c5b75198
|
@ -179,7 +179,7 @@ class Test {
|
|||
|
||||
checkDeploymentOptions(options, callback) {
|
||||
const self = this;
|
||||
self.resetServices = false;
|
||||
let resetServices = false;
|
||||
const {host, port, type, accounts} = options.deployment || {};
|
||||
|
||||
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) {
|
||||
self.resetServices = true;
|
||||
resetServices = true;
|
||||
}
|
||||
if (accounts) {
|
||||
self.simOptions.accounts = AccountParser.parseAccountsConfig(accounts, self.web3);
|
||||
|
@ -201,7 +201,7 @@ class Test {
|
|||
type
|
||||
});
|
||||
|
||||
if (!self.resetServices && !self.firstRunConfig) {
|
||||
if (!resetServices && !self.firstRunConfig) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue