Skip to content

Commit 9003a8a

Browse files
authored
ci: set integration test timeout to 10m (#706)
Sets the integration test timeout to 10 minutes in both Jest configuration and GitHub Actions workflow to prevent premature failures on slower runners. _Generated with mux_
1 parent 5baa5db commit 9003a8a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494

9595
integration-test:
9696
name: Integration Tests
97+
timeout-minutes: 10
9798
runs-on: ${{ github.repository_owner == 'coder' && 'self-hosted' || 'ubuntu-latest' }}
9899
steps:
99100
- name: Checkout code

jest.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ module.exports = {
3535
maxWorkers: "50%",
3636
// Force exit after tests complete to avoid hanging on lingering handles
3737
forceExit: true,
38+
// 10 minute timeout for integration tests, 10s for unit tests
39+
testTimeout: process.env.TEST_INTEGRATION === "1" ? 600000 : 10000,
3840
// Detect open handles in development (disabled by default for speed)
3941
// detectOpenHandles: true,
4042
};

0 commit comments

Comments
 (0)