Skip to content

Commit 2f5ca5d

Browse files
committed
Use process.platform instead of os.type()
1 parent fa83454 commit 2f5ca5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/parallel/test-fs-long-path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ try {
1515
testFsLongPath(common.tmpDir);
1616
common.refreshTmpDir();
1717
} catch (e) {
18-
if (os.type() == 'Linux') {
18+
if (process.platform == 'linux') {
1919
fs.accessSync(os.tmpdir(), fs.R_OK | fs.W_OK);
2020
const tmpDir = path.join(os.tmpdir(),
2121
`node-${process.version}-test-${1e6 * Math.random() | 0}`);

test/parallel/test-require-long-path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ try {
1515
testRequireLongPath(common.tmpDir);
1616
common.refreshTmpDir();
1717
} catch (e) {
18-
if (os.type() == 'Linux') {
18+
if (process.platform == 'linux') {
1919
fs.accessSync(os.tmpdir(), fs.R_OK | fs.W_OK);
2020
const tmpDir = path.join(os.tmpdir(),
2121
`node-${process.version}-test-${1e6 * Math.random() | 0}`);

0 commit comments

Comments
 (0)