summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/parallel/test-fs-readfilesync-enoent.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/parallel/test-fs-readfilesync-enoent.js b/test/parallel/test-fs-readfilesync-enoent.js
index 3d421e52b1..0369f35877 100644
--- a/test/parallel/test-fs-readfilesync-enoent.js
+++ b/test/parallel/test-fs-readfilesync-enoent.js
@@ -11,6 +11,7 @@ if (!common.isWindows)
const assert = require('assert');
const fs = require('fs');
+const os = require('os');
const path = require('path');
function test(p) {
@@ -23,10 +24,10 @@ function test(p) {
}));
}
-test('//localhost/c$/Windows/System32');
-test('//localhost/c$/Windows');
-test('//localhost/c$/');
-test('\\\\localhost\\c$\\');
+test(`//${os.hostname()}/c$/Windows/System32`);
+test(`//${os.hostname()}/c$/Windows`);
+test(`//${os.hostname()}/c$/`);
+test(`\\\\${os.hostname()}\\c$\\`);
test('C:\\');
test('C:');
test(process.env.windir);