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 33b2264a8d69f5..2be6e530275fbd 100644 --- a/test/common/tmpdir.js +++ b/test/common/tmpdir.js @@ -28,7 +28,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);