Skip to content

test: fs.link() test runs on same device

When running the tests if NODE_TEST_DIR is set to a device different than the location of the test files (where this repo is checked out), then the parallel/test-fs-link.js test will fail with EXDEV: cross-device link not permitted. The code works fine (and is in fact throwing an error as desired) but the test fails.

This commit first copies the "source" file to the same directory as the "destination" (where the hardlink will be created).

Merge request reports

Loading