Unverified Commit fa772c01 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #1311 from ethereum/fix/#1288

transaction execution error recorded
parents f762684c 501edb8d
...@@ -158,9 +158,19 @@ export function runTest (testName, testObject: any, contractDetails: any, opts: ...@@ -158,9 +158,19 @@ export function runTest (testName, testObject: any, contractDetails: any, opts:
console.error(err) console.error(err)
return next(err) return next(err)
} }
}).on('error', function (err: Error | null | undefined) { }).on('error', function (err: any) {
console.error(err) console.error(err)
next(err) let time: number = (Date.now() - startTime) / 1000.0
const resp: TestResultInterface = {
type: 'testFailure',
value: changeCase.sentenceCase(func.name),
time: time,
errMsg: err.message,
context: testName
};
testCallback(undefined, resp)
failureNum += 1
return next()
}) })
} }
}, function(error) { }, function(error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment