diff --git a/src/analyze-action-env.test.ts b/src/analyze-action-env.test.ts index c26a92882c..c39f31d766 100644 --- a/src/analyze-action-env.test.ts +++ b/src/analyze-action-env.test.ts @@ -24,6 +24,9 @@ setupTests(test); // but the first test would fail. test("analyze action with RAM & threads from environment variables", async (t) => { + // This test frequently times out on Windows with the default timeout, so we bump + // it a bit to 20s. + t.timeout(1000 * 20); await util.withTmpDir(async (tmpDir) => { process.env["GITHUB_SERVER_URL"] = util.GITHUB_DOTCOM_URL; process.env["GITHUB_REPOSITORY"] = "github/codeql-action-fake-repository"; diff --git a/src/analyze-action-input.test.ts b/src/analyze-action-input.test.ts index f4bf046daa..1f8017e10e 100644 --- a/src/analyze-action-input.test.ts +++ b/src/analyze-action-input.test.ts @@ -24,6 +24,7 @@ setupTests(test); // but the first test would fail. test("analyze action with RAM & threads from action inputs", async (t) => { + t.timeout(1000 * 20); await util.withTmpDir(async (tmpDir) => { process.env["GITHUB_SERVER_URL"] = util.GITHUB_DOTCOM_URL; process.env["GITHUB_REPOSITORY"] = "github/codeql-action-fake-repository";