test: fix 'timeout' typos
I don't think so, Tim. PR-URL: https://github.com/nodejs/node/pull/29234 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
db3fdfbcb6
commit
6c5ca74c93
@ -401,7 +401,7 @@ function canCreateSymLink() {
|
|||||||
'System32', 'whoami.exe');
|
'System32', 'whoami.exe');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const output = execSync(`${whoamiPath} /priv`, { timout: 1000 });
|
const output = execSync(`${whoamiPath} /priv`, { timeout: 1000 });
|
||||||
return output.includes('SeCreateSymbolicLinkPrivilege');
|
return output.includes('SeCreateSymbolicLinkPrivilege');
|
||||||
} catch {
|
} catch {
|
||||||
return false;
|
return false;
|
||||||
|
@ -29,7 +29,7 @@ function rimrafSync(pathname, { spawn = true } = {}) {
|
|||||||
if (spawn && process.platform === 'win32' && st.isDirectory()) {
|
if (spawn && process.platform === 'win32' && st.isDirectory()) {
|
||||||
try {
|
try {
|
||||||
// Try `rmdir` first.
|
// Try `rmdir` first.
|
||||||
execSync(`rmdir /q /s ${pathname}`, { timout: 1000 });
|
execSync(`rmdir /q /s ${pathname}`, { timeout: 1000 });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Attempt failed. Log and carry on.
|
// Attempt failed. Log and carry on.
|
||||||
debug(e);
|
debug(e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user