From dd8c6b9a35245386222a8a6dd296207da9649e64 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Fri, 28 Sep 2018 13:22:28 +0100 Subject: [PATCH] Add missing config The configuration for test is not passed via the engine --- lib/core/engine.js | 2 +- lib/modules/contracts_manager/index.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/core/engine.js b/lib/core/engine.js index 671dc7e50..4724a831b 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -197,7 +197,7 @@ class Engine { this.registerModule('deploytracker', {trackContracts: options.trackContracts}); this.registerModule('specialconfigs'); this.registerModule('console_listener', {ipc: self.ipc}); - this.registerModule('contracts_manager'); + this.registerModule('contracts_manager', {compileOnceOnly: options.compileOnceOnly}); this.registerModule('deployment', {plugins: this.plugins, onlyCompile: options.onlyCompile}); this.events.on('file-event', function (fileType) { diff --git a/lib/modules/contracts_manager/index.js b/lib/modules/contracts_manager/index.js index 5f4023e9b..922e9f40d 100644 --- a/lib/modules/contracts_manager/index.js +++ b/lib/modules/contracts_manager/index.js @@ -83,7 +83,6 @@ class ContractsManager { function compileContracts(callback) { self.events.emit("status", __("Compiling...")); if (self.compileOnceOnly && self.compiledContracts && Object.keys(self.compiledContracts).length) { - // Only compile once for tests return callback(); } self.events.request("compiler:contracts", self.contractsFiles, compilerOptions, function (err, compiledObject) {