mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
chore: disable part of test-fs-read-stream.js
(#24085)
This commit is contained in:
parent
f8fdaa082b
commit
754f21f0cd
2 changed files with 24 additions and 22 deletions
|
@ -72,6 +72,7 @@
|
||||||
"test-fs-mkdir.js",
|
"test-fs-mkdir.js",
|
||||||
"test-fs-open.js",
|
"test-fs-open.js",
|
||||||
"test-fs-opendir.js",
|
"test-fs-opendir.js",
|
||||||
|
"test-fs-read-stream.js",
|
||||||
"test-fs-rmdir-recursive.js",
|
"test-fs-rmdir-recursive.js",
|
||||||
"test-fs-write-file.js",
|
"test-fs-write-file.js",
|
||||||
"test-fs-write.js",
|
"test-fs-write.js",
|
||||||
|
|
|
@ -197,30 +197,31 @@ assert.throws(
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!common.isWindows) {
|
// TODO(bartlomieju): this bit became very flaky on CI, and so far we haven't pinpointed the exact cause
|
||||||
// Verify that end works when start is not specified, and we do not try to
|
// if (!common.isWindows) {
|
||||||
// use positioned reads. This makes sure that this keeps working for
|
// // Verify that end works when start is not specified, and we do not try to
|
||||||
// non-seekable file descriptors.
|
// // use positioned reads. This makes sure that this keeps working for
|
||||||
tmpdir.refresh();
|
// // non-seekable file descriptors.
|
||||||
const filename = `${tmpdir.path}/foo.pipe`;
|
// tmpdir.refresh();
|
||||||
const mkfifoResult = child_process.spawnSync('mkfifo', [filename]);
|
// const filename = `${tmpdir.path}/foo.pipe`;
|
||||||
if (!mkfifoResult.error) {
|
// const mkfifoResult = child_process.spawnSync('mkfifo', [filename]);
|
||||||
child_process.exec(`echo "xyz foobar" > '${filename}'`);
|
// if (!mkfifoResult.error) {
|
||||||
const stream = new fs.createReadStream(filename, common.mustNotMutateObjectDeep({ end: 1 }));
|
// child_process.exec(`echo "xyz foobar" > '${filename}'`);
|
||||||
stream.data = '';
|
// const stream = new fs.createReadStream(filename, common.mustNotMutateObjectDeep({ end: 1 }));
|
||||||
|
// stream.data = '';
|
||||||
|
|
||||||
stream.on('data', function(chunk) {
|
// stream.on('data', function(chunk) {
|
||||||
stream.data += chunk;
|
// stream.data += chunk;
|
||||||
});
|
// });
|
||||||
|
|
||||||
stream.on('end', common.mustCall(function() {
|
// stream.on('end', common.mustCall(function() {
|
||||||
assert.strictEqual(stream.data, 'xy');
|
// assert.strictEqual(stream.data, 'xy');
|
||||||
fs.unlinkSync(filename);
|
// fs.unlinkSync(filename);
|
||||||
}));
|
// }));
|
||||||
} else {
|
// } else {
|
||||||
common.printSkipMessage('mkfifo not available');
|
// common.printSkipMessage('mkfifo not available');
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
{
|
{
|
||||||
// Pause and then resume immediately.
|
// Pause and then resume immediately.
|
||||||
|
|
Loading…
Reference in a new issue