From 2f5ca5dc0d82e0e94da951efad8f6811396754fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Pocztarski?= Date: Tue, 1 Dec 2015 19:47:28 +0100 Subject: [PATCH] Use process.platform instead of os.type() --- test/parallel/test-fs-long-path.js | 2 +- test/parallel/test-require-long-path.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-fs-long-path.js b/test/parallel/test-fs-long-path.js index b3c69fa1b8632d..bf4995d5919fa6 100644 --- a/test/parallel/test-fs-long-path.js +++ b/test/parallel/test-fs-long-path.js @@ -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}`); diff --git a/test/parallel/test-require-long-path.js b/test/parallel/test-require-long-path.js index ebc1049ecd72c7..3ff483fd3629eb 100644 --- a/test/parallel/test-require-long-path.js +++ b/test/parallel/test-require-long-path.js @@ -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}`);