Skip to content

Commit

Permalink
test: fix wrong method call
Browse files Browse the repository at this point in the history
PR-URL: #34629
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
gengjiawen authored and addaleax committed Aug 8, 2020
1 parent 6cd1c41 commit e146686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-write-reuse-callback.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ const ondone = common.mustCall((err) => {
write();
function write() {
const buf = Buffer.alloc(size, 'x');
fs.write(fd, buf, 0, buf.size, -1, ondone);
fs.write(fd, buf, 0, buf.length, -1, ondone);
}

0 comments on commit e146686

Please sign in to comment.