Repository navigation
test-require-symlink error on Windows 10 #23596
Copy link
Copy link
Closed
Labels
testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
- Version: v10.3.0
- Platform: 64-bit (Windows)
- Subsystem: vsbuild test
running 'python tools\test.py --mode=release -J default doctool addons addons-napi'
Skipping pseudo-tty tests, as pseudo terminals are not available on Windows.
=== release test-require-symlink ===
Path: parallel/test-require-symlink
assert.js:86
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'INCORRECT_VERSION'
- 'CORRECT_VERSION'
at test (C:\Users\s0ul-\Documents\Github\node\node\test\parallel\test-require-symlink.js:69:10)
at Object.<anonymous> (C:\Users\s0ul-\Documents\Github\node\node\test\parallel\test-require-symlink.js:60:1)
at Module._compile (internal/modules/cjs/loader.js:706:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:717:10)
at Module.load (internal/modules/cjs/loader.js:604:32)
at tryModuleLoad (internal/modules/cjs/loader.js:543:12)
at Function.Module._load (internal/modules/cjs/loader.js:535:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:759:12)
at startup (internal/bootstrap/node.js:303:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:866:3)
Command: C:\Users\s0ul-\Documents\Github\node\node\Release\node.exe --preserve-symlinks C:\Users\s0ul-\Documents\Github\node\node\test\parallel\test-require-symlink.js
=== release test-tty-stdin-pipe ===
Path: parallel/test-tty-stdin-pipee test-url-format-invalid-input
Command: C:\Users\s0ul-\Documents\Github\node\node\Release\node.exe C:\Users\s0ul-\Documents\Github\node\node\test\parallel\test-tty-stdin-pipe.js
--- TIMEOUT ---
This issue occurs when running the tests on Windows with Windows Defender Firewall off while connected to a wireless network. This was executed in a command prompt with administrator privileges on Windows 10 ver 1803 (build 17134.345).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Activity
[-]test-require-symlink[/-][+]test-require-symlink error on Windows 10[/+]spectacularGavin commentedon Oct 12, 2018
I had the same error when you have Symlink permissions when running as Administrator. Since admin has symlink permissions. The test seems to skip when you do not have symlink permissions.
The return value required by the
fooModule(foo.js within the tmp dir)Looks like
dep2,jsrequires the incorrectbar.jsS0ulDrag0n commentedon Oct 13, 2018
I've re-ran it again without administrative privileges. One error did come up relating to a parallel HTTP test if I remember correctly. However after running it again after and subsequently, the error is not showing up any more so I am unfortunately unable to report that one.
spectacularGavin commentedon Oct 13, 2018
After a bit of digging, it seems that
module-require-symlink\node_modules\dep1\node_modules\dep2is linked two levels down tomodule-require-symlink\node_modules\dep2. I'm not quite sure how require resolves it's path but sincemodule-require-symlink\node_modules\dep2has nonode_modules\barit resolved tomodule-require-symlink\node_modules\barwhich has the incorrect version. I apologize in advance if I'm just spouting nonsense here.bzoz commentedon Oct 16, 2018
Fix in #23691, thanks for reporting this!
test: fix test-require-symlink on Windows
test: fix test-require-symlink on Windows
test: fix test-require-symlink on Windows
test: fix test-require-symlink on Windows
test: fix test-require-symlink on Windows
test: fix test-require-symlink on Windows
test: fix test-require-symlink on Windows