Skip to content

Commit

Permalink
fix test actually
Browse files Browse the repository at this point in the history
  • Loading branch information
aearly committed Jun 23, 2019
1 parent 7a560f7 commit 9593bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/es2017/asyncGenerators.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ module.exports = function () {
async.each(new AsyncIterable(5),
(val, cb) => {
calls.push(val)
if (val === 3) cb(false)
if (val === 2) cb(false)
cb()
}, () => {
throw new Error('should not get here')
}
)
await delay(20)
expect(calls).to.eql([0, 1, 2, 3])
expect(calls).to.eql([0, 1, 2])
})
}

0 comments on commit 9593bfe

Please sign in to comment.