Skip to content

Commit

Permalink
wrapped callbacks in common.mustCall
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmed committed Jan 18, 2017
1 parent 9baa222 commit 6b3e7ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/parallel/test-fs-empty-readStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const fs = require('fs');

const emptyFile = path.join(common.fixturesDir, 'empty.txt');


fs.open(emptyFile, 'r', common.mustCall((error, fd) => {

assert.ifError(error);
Expand Down Expand Up @@ -38,5 +37,5 @@ fs.open(emptyFile, 'r', common.mustCall((error, fd) => {

setTimeout(common.mustCall(() => {
assert.strictEqual(read.isPaused(), true);
}), common.platformTimeout(50));
}, common.platformTimeout(50));
}));

0 comments on commit 6b3e7ef

Please sign in to comment.