diff --git a/test/common/index.js b/test/common/index.js index 13604d06e14a36..98a26872223cb9 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -401,7 +401,7 @@ function canCreateSymLink() { 'System32', 'whoami.exe'); try { - const output = execSync(`${whoamiPath} /priv`, { timout: 1000 }); + const output = execSync(`${whoamiPath} /priv`, { timeout: 1000 }); return output.includes('SeCreateSymbolicLinkPrivilege'); } catch { return false; diff --git a/test/common/tmpdir.js b/test/common/tmpdir.js index c66756e21b47f2..16d375afff06b1 100644 --- a/test/common/tmpdir.js +++ b/test/common/tmpdir.js @@ -29,7 +29,7 @@ function rimrafSync(pathname, { spawn = true } = {}) { if (spawn && process.platform === 'win32' && st.isDirectory()) { try { // Try `rmdir` first. - execSync(`rmdir /q /s ${pathname}`, { timout: 1000 }); + execSync(`rmdir /q /s ${pathname}`, { timeout: 1000 }); } catch (e) { // Attempt failed. Log and carry on. debug(e);