Add missing config

The configuration for test is not passed via the engine
This commit is contained in:
Anthony Laibe 2018-09-28 13:22:28 +01:00
parent 2e5f794820
commit 1b4e0c84f7
2 changed files with 1 additions and 2 deletions

View File

@ -197,7 +197,7 @@ class Engine {
this.registerModule('deploytracker', {trackContracts: options.trackContracts}); this.registerModule('deploytracker', {trackContracts: options.trackContracts});
this.registerModule('specialconfigs'); this.registerModule('specialconfigs');
this.registerModule('console_listener', {ipc: self.ipc}); 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.registerModule('deployment', {plugins: this.plugins, onlyCompile: options.onlyCompile});
this.events.on('file-event', function (fileType) { this.events.on('file-event', function (fileType) {

View File

@ -83,7 +83,6 @@ class ContractsManager {
function compileContracts(callback) { function compileContracts(callback) {
self.events.emit("status", __("Compiling...")); self.events.emit("status", __("Compiling..."));
if (self.compileOnceOnly && self.compiledContracts && Object.keys(self.compiledContracts).length) { if (self.compileOnceOnly && self.compiledContracts && Object.keys(self.compiledContracts).length) {
// Only compile once for tests
return callback(); return callback();
} }
self.events.request("compiler:contracts", self.contractsFiles, compilerOptions, function (err, compiledObject) { self.events.request("compiler:contracts", self.contractsFiles, compilerOptions, function (err, compiledObject) {