diff --git a/lib/tests/run_tests.js b/lib/tests/run_tests.js index ef9f7b0c..9efc7197 100644 --- a/lib/tests/run_tests.js +++ b/lib/tests/run_tests.js @@ -47,7 +47,7 @@ module.exports = { next(null, files); }); }, - function setupGlobalNamespace(next) { + function setupGlobalNamespace(files, next) { // TODO put default config const test = new Test(); global.embark = test; @@ -78,7 +78,9 @@ module.exports = { }; console.info('Compiling contracts'.cyan); - test.init(next); + test.init((err) => { + next(err, files); + }); }, function executeForAllFiles(files, next) { async.eachLimit(files, 1, (file, eachCb) => {