Skip to content

Commit

Permalink
Use process.platform instead of os.type()
Browse files Browse the repository at this point in the history
  • Loading branch information
rsp committed Dec 1, 2015
1 parent fa83454 commit 2f5ca5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-long-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ try {
testFsLongPath(common.tmpDir);
common.refreshTmpDir();
} catch (e) {
if (os.type() == 'Linux') {
if (process.platform == 'linux') {
fs.accessSync(os.tmpdir(), fs.R_OK | fs.W_OK);
const tmpDir = path.join(os.tmpdir(),
`node-${process.version}-test-${1e6 * Math.random() | 0}`);
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-require-long-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ try {
testRequireLongPath(common.tmpDir);
common.refreshTmpDir();
} catch (e) {
if (os.type() == 'Linux') {
if (process.platform == 'linux') {
fs.accessSync(os.tmpdir(), fs.R_OK | fs.W_OK);
const tmpDir = path.join(os.tmpdir(),
`node-${process.version}-test-${1e6 * Math.random() | 0}`);
Expand Down

0 comments on commit 2f5ca5d

Please sign in to comment.