From a7d11506879385fea2271f52d91ee6a81af860f9 Mon Sep 17 00:00:00 2001 From: Masashi Hirano Date: Fri, 4 May 2018 13:44:16 +0900 Subject: [PATCH] test: fix tests with symlink test/README.md indicates that `canCreateSymlink` in test/common/index.js always returns `true` on non-Windows platforms. Now, this function always returns nothing on non-Windows platforms. ref: https://github.com/nodejs/node/tree/master/test/common#cancreatesymlink --- test/common/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/common/index.js b/test/common/index.js index bbd2b62d7da768..ea77c963aa9af0 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -518,6 +518,8 @@ exports.canCreateSymLink = function() { return false; } } + // On non-Windows platforms, this always returns `true` + return true; }; exports.getCallSite = function getCallSite(top) {