Skip to content

test-fs-readfilesync-enoent failing locally with unknown error #21501

Description

@targos
  • Version: master, v10.5.0
  • Platform: Windows 10 x64
  • Subsystem: fs
PS D:\Documents\GitHub\nodejs\node> node D:\Documents\GitHub\nodejs\node\test\parallel\test-fs-readfilesync-enoent.js
fs.js:119
    throw err;
    ^

Error: UNKNOWN: unknown error, lstat '\\localhost\c$\'
    at Object.realpathSync (fs.js:1395:5)
    at test (D:\Documents\GitHub\nodejs\node\test\parallel\test-fs-readfilesync-enoent.js:17:21)
    at Object.<anonymous> (D:\Documents\GitHub\nodejs\node\test\parallel\test-fs-readfilesync-enoent.js:26:1)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:240:19)

/cc @nodejs/platform-windows

Activity

  1. added
    fsIssues and PRs related to file-system APIs and the fs module.
    windowsIssues and PRs related to the Windows platform.
    testIssues and PRs related to Node.js core tests and test infrastructure.
    on Jun 24, 2018
  2. bzoz commented on Jun 25, 2018

    @bzoz
    Contributor

    This works on my box. Maybe you have administrative shares disabled?

  3. targos commented on Jun 25, 2018

    @targos
    MemberAuthor

    @bzoz My C: drives is shared. I found now that the call to fs.realpathSync() succeeds if I replace "localhost" with my computer's name. Would it make sense to modify the test and use os.hostname()?

  4. bzoz commented on Jun 28, 2018

    @bzoz
    Contributor

    If it makes the test pass on your box then why not. Do you want me to make a PR for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to file-system APIs and the fs module.testIssues and PRs related to Node.js core tests and test infrastructure.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions