From ff6330a6ac305fda67cab6ddfa87bb2e7e7785c7 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Tue, 20 Aug 2019 17:24:39 -0400 Subject: [PATCH] test: fix 'timeout' typos I don't think so, Tim. PR-URL: https://github.com/nodejs/node/pull/29234 Reviewed-By: Richard Lau Reviewed-By: Rich Trott Reviewed-By: Yongsheng Zhang Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- test/common/index.js | 2 +- test/common/tmpdir.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);