From 0f84fe2127be169fba2cee53b153f714dc5c76da Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 12 Jun 2018 15:32:38 -0400 Subject: [PATCH] fix callback --- lib/tests/run_tests.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) => {