Ensure promise-based benchmark test is fairer

Real-world code will register a catch handler
This commit is contained in:
Lovell Fuller 2019-09-25 12:01:38 +01:00
parent 6b560f7a85
commit 7d6fadce6b

View File

@ -260,6 +260,9 @@ async.series({
.then(function (buffer) {
assert.notStrictEqual(null, buffer);
deferred.resolve();
})
.catch(function (err) {
throw err;
});
}
}).on('cycle', function (event) {