summaryrefslogtreecommitdiff
path: root/test/parallel/test-stream-readable-event.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-stream-readable-event.js')
-rw-r--r--test/parallel/test-stream-readable-event.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-stream-readable-event.js b/test/parallel/test-stream-readable-event.js
index 10d314f4ee..957f409781 100644
--- a/test/parallel/test-stream-readable-event.js
+++ b/test/parallel/test-stream-readable-event.js
@@ -17,7 +17,7 @@ var Readable = require('stream').Readable;
};
// This triggers a 'readable' event, which is lost.
- r.push(new Buffer('blerg'));
+ r.push(Buffer.from('blerg'));
var caughtReadable = false;
setTimeout(function() {
@@ -51,7 +51,7 @@ var Readable = require('stream').Readable;
};
// This triggers a 'readable' event, which is lost.
- r.push(new Buffer('bl'));
+ r.push(Buffer.from('bl'));
var caughtReadable = false;
setTimeout(function() {
@@ -84,7 +84,7 @@ var Readable = require('stream').Readable;
};
// This triggers a 'readable' event, which is lost.
- r.push(new Buffer('blerg'));
+ r.push(Buffer.from('blerg'));
r.push(null);
var caughtReadable = false;