Skip to content

Commit

Permalink
fixup! fix: empty data OnProgress by race conditions of AsyncProgress…
Browse files Browse the repository at this point in the history
…Worker
  • Loading branch information
legendecas committed Dec 14, 2020
1 parent 3520789 commit e7cdc8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/asyncprogressworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ function malignTest(binding) {
return new Promise((resolve, reject) => {
binding.doMalignTest(
common.mustCall((err) => {
assert.throws(() => { throw err }, /test error/);
if (err) {
return reject(err);
}
resolve();
}),
common.mustCallAtLeast((error, reason) => {
Expand Down

0 comments on commit e7cdc8e

Please sign in to comment.