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 committed by Pascal Precht
parent 850a80c90c
commit dd8c6b9a35
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
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('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) {

View File

@ -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) {