Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Fix decoder tests with newer Node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rantanen committed Dec 9, 2018
1 parent 7bbac01 commit 9faf2e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ describe( 'Decoder', function() {
var decoder = new opus.Decoder( hzDecode, chanDecode );
var oggDecoder = new ogg.Decoder();
oggDecoder.on( 'stream', function( stream ) {

// Workaround to Node issue #24915
// https://github.com/nodejs/node/issues/24915
stream._readableState.highWaterMark = 1;

stream.pipe( decoder );
});

Expand Down

0 comments on commit 9faf2e4

Please sign in to comment.