mirror of https://github.com/nodejs/node.git
test: unlink temp file at test start
The file has a long name that's apparently impossible to remove with `git clean` on Windows.pull/24507/merge
parent
d1b4dcd6ac
commit
93156a6057
|
@ -31,6 +31,13 @@ var fileNameLen = Math.max(260 - common.tmpDir.length - 1, 1);
|
|||
var fileName = path.join(common.tmpDir, new Array(fileNameLen + 1).join('x'));
|
||||
var fullPath = path.resolve(fileName);
|
||||
|
||||
try {
|
||||
fs.unlinkSync(fullPath);
|
||||
}
|
||||
catch (e) {
|
||||
// Ignore.
|
||||
}
|
||||
|
||||
console.log({
|
||||
filenameLength: fileName.length,
|
||||
fullPathLength: fullPath.length
|
||||
|
|
Loading…
Reference in New Issue