aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-net-pipe-connect-errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-net-pipe-connect-errors.js')
-rw-r--r--test/parallel/test-net-pipe-connect-errors.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-net-pipe-connect-errors.js b/test/parallel/test-net-pipe-connect-errors.js
index a831b10712..e2ec1debf1 100644
--- a/test/parallel/test-net-pipe-connect-errors.js
+++ b/test/parallel/test-net-pipe-connect-errors.js
@@ -14,7 +14,7 @@ var accessErrorFired = false;
var emptyTxt;
-if (process.platform === 'win32') {
+if (common.isWindows) {
// on Win, common.PIPE will be a named pipe, so we use an existing empty
// file instead
emptyTxt = path.join(common.fixturesDir, 'empty.txt');
@@ -58,7 +58,7 @@ noEntSocketClient.on('error', function(err) {
// On Windows or when running as root, a chmod has no effect on named pipes
-if (process.platform !== 'win32' && process.getuid() !== 0) {
+if (!common.isWindows && process.getuid() !== 0) {
// Trying to connect to a socket one has no access to should result in EACCES
var accessServer = net.createServer(function() {
assert.ok(false);
@@ -83,7 +83,7 @@ if (process.platform !== 'win32' && process.getuid() !== 0) {
process.on('exit', function() {
assert.ok(notSocketErrorFired);
assert.ok(noEntErrorFired);
- if (process.platform !== 'win32' && process.getuid() !== 0) {
+ if (!common.isWindows && process.getuid() !== 0) {
assert.ok(accessErrorFired);
}
});