Skip to content

Commit

Permalink
[squash] always skip mkfifo on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Mar 14, 2018
1 parent 25b89b2 commit 51b5998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-fs-read-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ common.expectsError(
}));
}

{
if (!common.isWindows) {
// Verify that end works when start is not specified, and we do not try to
// use positioned reads. This makes sure that this keeps working for
// non-seekable file descriptors.
tmpdir.refresh();
const filename = `${tmpdir.path}/foo.pipe`;
const mkfifoResult = child_process.spawnSync('mkfifo', [filename]);
if (!common.isWindows && !mkfifoResult.error) {
if (!mkfifoResult.error) {
child_process.exec(`echo "xyz foobar" > '${filename}'`);
const stream = new fs.createReadStream(filename, { end: 1 });
stream.data = '';
Expand Down

0 comments on commit 51b5998

Please sign in to comment.