Skip to content

Commit 030c953

Browse files
jay23606aduh95
authored andcommitted
test: skip readFileSync pipe test without proc io
Signed-off-by: jay23606 <4602056+jay23606@users.noreply.github.com> PR-URL: #67242 Reviewed-By: Stewart X Addison <sxa@redhat.com> Reviewed-By: LiviaMedeiros <livia@cirno.name>
1 parent ace3168 commit 030c953

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/parallel/test-fs-readfilesync-pipe-short-reads.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
// that happens.
66
// Refs: https://github.com/nodejs/node/issues/66341
77
const common = require('../common');
8+
const fs = require('fs');
89

9-
if (!common.isLinux)
10+
if (!fs.existsSync('/proc/self/io'))
1011
common.skip('Paces the writes with /proc/<pid>/io.');
1112

1213
const assert = require('assert');
1314
const { spawn } = require('child_process');
14-
const fs = require('fs');
1515

1616
const kShortWrite = 4000;
1717
const kShortWrites = 20;

0 commit comments

Comments
 (0)