-
Notifications
You must be signed in to change notification settings - Fork 30k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: #56110 Fixes: #56002 Refs: #55623 Refs: #56088 Reviewed-By: Gerhard Stöbich <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
- Loading branch information
1 parent
eef06f7
commit f184a0a
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use strict'; | ||
|
||
const common = require('../common'); | ||
const assert = require('assert'); | ||
const { readdir, readdirSync } = require('fs'); | ||
|
||
if (!common.isWindows) { | ||
common.skip('This test is specific to Windows to test enumerate pipes'); | ||
} | ||
|
||
// Ref: https://github.com/nodejs/node/issues/56002 | ||
// This test is specific to Windows. | ||
|
||
const pipe = '\\\\.\\pipe\\'; | ||
|
||
const { length } = readdirSync(pipe); | ||
assert.ok(length >= 0, `${length} is not greater or equal to 0`); | ||
|
||
readdir(pipe, common.mustSucceed((files) => { | ||
assert.ok(files.length >= 0, `${files.length} is not greater or equal to 0`); | ||
})); |