summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-sir-writes-alot.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-fs-sir-writes-alot.js')
-rw-r--r--test/parallel/test-fs-sir-writes-alot.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/parallel/test-fs-sir-writes-alot.js b/test/parallel/test-fs-sir-writes-alot.js
index 1f949ed92a..8e1385ed4d 100644
--- a/test/parallel/test-fs-sir-writes-alot.js
+++ b/test/parallel/test-fs-sir-writes-alot.js
@@ -16,7 +16,7 @@ var N = 10240, complete = 0;
for (var i = 0; i < N; i++) {
// Create a new buffer for each write. Before the write is actually
// executed by the thread pool, the buffer will be collected.
- var buffer = new Buffer(line);
+ var buffer = Buffer.from(line);
fs.write(fd, buffer, 0, buffer.length, null, function(er, written) {
complete++;
if (complete === N) {
@@ -44,4 +44,3 @@ process.on('exit', function() {
// few...
assert.ok(bytesChecked > 1000);
});
-