Skip to content

Commit fd91357

Browse files
committed
fix unit testing
1 parent 8a90002 commit fd91357

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libs/remix-tests/src/testRunner.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
232232
filename: testObject.filename
233233
}
234234
testCallback(undefined, resp)
235-
async.eachOfLimit(runList, 1, async function (func, index) {
235+
async.eachOfLimit(runList, 1, async function (func, index, next) {
236236
let sender: string | null = null
237237
let hhLogs
238238
let sendParams: Record<string, any> | null = null
@@ -341,7 +341,7 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
341341
testCallback(undefined, resp)
342342
failureNum += 1
343343
timePassed += time
344-
return
344+
return next()
345345
}
346346
testPassed = true
347347
}
@@ -375,11 +375,11 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
375375
timePassed += time
376376
}
377377

378-
return
378+
return next()
379379
} catch (err) {
380380
if (!err.receipt) {
381381
console.error(err)
382-
return
382+
return next(err)
383383
}
384384
const time: number = (Date.now() - startTime) / 1000.0
385385
if (failedTransactions[err.receipt.transactionHash]) return // we are already aware of this transaction failing.
@@ -406,7 +406,7 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
406406
testCallback(undefined, resp)
407407
failureNum += 1
408408
timePassed += time
409-
return
409+
return next()
410410
}
411411
}
412412
}, function (error) {

0 commit comments

Comments
 (0)