GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: replace localhost with os.hostname in fs-readfilesync · nodejs/node@23525b0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-fs-readfilesync-enoent.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-fs-readfilesync-enoent.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-readfilesync-enoent.js
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ if (!common.isWindows)
1111

1212
const assert = require('assert');
1313
const fs = require('fs');
14+
const os = require('os');
1415
const path = require('path');
1516

1617
function test(p) {
@@ -23,10 +24,10 @@ function test(p) {
2324
}));
2425
}
2526

26-
test('//localhost/c$/Windows/System32');
27-
test('//localhost/c$/Windows');
28-
test('//localhost/c$/');
29-
test('\\\\localhost\\c$\\');
27+
test(`//${os.hostname()}/c$/Windows/System32`);
28+
test(`//${os.hostname()}/c$/Windows`);
29+
test(`//${os.hostname()}/c$/`);
30+
test(`\\\\${os.hostname()}\\c$\\`);
3031
test('C:\\');
3132
test('C:');
3233
test(process.env.windir);

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.