mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Ensure promise-based benchmark test is fairer
Real-world code will register a catch handler
This commit is contained in:
parent
6b560f7a85
commit
7d6fadce6b
@ -260,6 +260,9 @@ async.series({
|
|||||||
.then(function (buffer) {
|
.then(function (buffer) {
|
||||||
assert.notStrictEqual(null, buffer);
|
assert.notStrictEqual(null, buffer);
|
||||||
deferred.resolve();
|
deferred.resolve();
|
||||||
|
})
|
||||||
|
.catch(function (err) {
|
||||||
|
throw err;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}).on('cycle', function (event) {
|
}).on('cycle', function (event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user