Skip to content

Commit

Permalink
test: Use 1k size buffers
Browse files Browse the repository at this point in the history
libao refuses to work with 0-bytes buffers.

Signed-off-by: Ezequiel Garcia <[email protected]>
  • Loading branch information
ezequielgarcia committed Feb 1, 2018
1 parent dace6a7 commit 1eee5d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('Speaker', function () {
done()
})
assert.equal(called, false)
s.write(bufferAlloc(0))
s.write(bufferAlloc(1024))
})

it('should emit a "close" event after end()', function (done) {
Expand All @@ -48,7 +48,7 @@ describe('Speaker', function () {
done()
})
assert.equal(called, false)
s.end(bufferAlloc(0))
s.end(bufferAlloc(1024))
})

it('should only emit one "close" event', function (done) {
Expand Down

0 comments on commit 1eee5d9

Please sign in to comment.