Skip to content

Commit ebce3cb

Browse files
committed
Fix test timeouts again
1 parent 5bfeef8 commit ebce3cb

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/cse-machine/__tests__/cse-machine-unique-id.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const getProgramEnv = (context: Context) => {
9191

9292
test(
9393
'Program environment id stays the same regardless of amount of steps',
94-
{ timeout: process.env.GITHUB_ACTIOS ? 20_000 : 10_000 },
94+
{ timeout: process.env.GITHUB_ACTIONS ? 20_000 : 10_000 },
9595
async () => {
9696
const code = stripIndent`
9797
let x = 0;

src/runner/__tests__/modules.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,12 @@ describe.each(describeCases)(
6262
return [`Testing ${chapterName}`, chapterVal, variant] as [string, Chapter, Variant]
6363
})
6464

65-
test.each(chapterCases)('%s', { timeout: 10_000 }, (_, chapter, variant) => {
66-
return expectFinishedResult(code, { chapter, variant }).toEqual('foo')
67-
})
65+
test.each(chapterCases)(
66+
'%s',
67+
{ timeout: process.env.GITHUB_ACTIONS ? 20_000 : 10_000 },
68+
(_, chapter, variant) => {
69+
return expectFinishedResult(code, { chapter, variant }).toEqual('foo')
70+
}
71+
)
6872
}
6973
)

0 commit comments

Comments
 (0)