Skip to content

Commit 1c3c806

Browse files
authored
Merge pull request #3228 from github/mbg/test/timeout
Bump timeout for `analyze-action-env` test
2 parents 4264208 + da64a41 commit 1c3c806

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/analyze-action-env.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ setupTests(test);
2424
// but the first test would fail.
2525

2626
test("analyze action with RAM & threads from environment variables", async (t) => {
27+
// This test frequently times out on Windows with the default timeout, so we bump
28+
// it a bit to 20s.
29+
t.timeout(1000 * 20);
2730
await util.withTmpDir(async (tmpDir) => {
2831
process.env["GITHUB_SERVER_URL"] = util.GITHUB_DOTCOM_URL;
2932
process.env["GITHUB_REPOSITORY"] = "github/codeql-action-fake-repository";

src/analyze-action-input.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ setupTests(test);
2424
// but the first test would fail.
2525

2626
test("analyze action with RAM & threads from action inputs", async (t) => {
27+
t.timeout(1000 * 20);
2728
await util.withTmpDir(async (tmpDir) => {
2829
process.env["GITHUB_SERVER_URL"] = util.GITHUB_DOTCOM_URL;
2930
process.env["GITHUB_REPOSITORY"] = "github/codeql-action-fake-repository";

0 commit comments

Comments
 (0)