mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 13:36:14 +00:00
Do not connect to the node until it is needed in test
This commit is contained in:
parent
2b764a4844
commit
4b38f1e804
@ -246,6 +246,21 @@ class Test {
|
||||
function resetContracts(next) {
|
||||
self.engine.events.request("contracts:reset:dependencies", next);
|
||||
},
|
||||
function compileContracts(next) {
|
||||
if (Object.keys(self.builtContracts).length > 0) {
|
||||
return next();
|
||||
}
|
||||
console.info('Compiling contracts'.cyan);
|
||||
self.engine.contractsManager.build(() => {
|
||||
self.builtContracts = cloneDeep(self.engine.contractsManager.contracts);
|
||||
let className;
|
||||
for (className in self.builtContracts) {
|
||||
self.builtContracts[className].dependencyCount = null;
|
||||
}
|
||||
self.compiledContracts = cloneDeep(self.engine.contractsManager.compiledContracts);
|
||||
next();
|
||||
});
|
||||
},
|
||||
function deploy(next) {
|
||||
self._deploy(options, (err, accounts) => {
|
||||
if (err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user