Skip to content

Commit

Permalink
test: refactor test-fs-read-zero-length.js
Browse files Browse the repository at this point in the history
PR-URL: nodejs#10729
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
hiroppy authored and italoacasas committed Jan 18, 2017
1 parent c89a2c1 commit 596f57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-read-zero-length.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const fd = fs.openSync(filepath, 'r');
const bufferAsync = Buffer.alloc(0);
const bufferSync = Buffer.alloc(0);

fs.read(fd, bufferAsync, 0, 0, 0, common.mustCall(function(err, bytesRead) {
fs.read(fd, bufferAsync, 0, 0, 0, common.mustCall((err, bytesRead) => {
assert.strictEqual(bytesRead, 0);
assert.deepStrictEqual(bufferAsync, Buffer.alloc(0));
}));
Expand Down

0 comments on commit 596f57f

Please sign in to comment.