Skip to content

Commit c4ce983

Browse files
committed
Relax iOS test inactivity timeout in CI
1 parent ad6b962 commit c4ce983

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ jobs:
4747
- name: Run Tests on iOS
4848
env:
4949
IOS_BUILD_TIMEOUT_MS: "600000"
50+
IOS_TEST_INACTIVITY_TIMEOUT_MS: "180000"
5051
run: npm run test:ios

scripts/run-tests-ios.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// - IOS_TEST_TIMEOUT_MS overrides max test runtime (default: 2 minutes).
1717
// - IOS_LOG_JUNIT=0 disables streaming TKUnit/JUnit lines to console.
1818
// - IOS_TESTS filters test modules (comma-separated substrings passed to app as -tests).
19-
// - IOS_TEST_INACTIVITY_TIMEOUT_MS overrides max no-log interval (default: 45 seconds).
19+
// - IOS_TEST_INACTIVITY_TIMEOUT_MS overrides max no-log interval (default: 2 minutes).
2020
// - IOS_TEST_LOG_STREAM=0 disables parallel simulator log stream (enabled by default).
2121
// - IOS_SIM_LOG_LOOKBACK sets log-show window used for post-failure diagnostics (default: 45s).
2222

@@ -92,7 +92,7 @@ const commandTimeoutMs = parseTimeoutMs("IOS_COMMAND_TIMEOUT_MS", 3 * 60 * 1000)
9292
const buildTimeoutMs = parseTimeoutMs("IOS_BUILD_TIMEOUT_MS", 10 * 60 * 1000);
9393
const commandMaxBufferBytes = parsePositiveInt("IOS_COMMAND_MAX_BUFFER_BYTES", 64 * 1024 * 1024);
9494
const testTimeoutMs = Number(process.env.IOS_TEST_TIMEOUT_MS || 2 * 60 * 1000);
95-
const inactivityTimeoutMs = Number(process.env.IOS_TEST_INACTIVITY_TIMEOUT_MS || 45 * 1000);
95+
const inactivityTimeoutMs = Number(process.env.IOS_TEST_INACTIVITY_TIMEOUT_MS || 2 * 60 * 1000);
9696
const emitJunitLogs = process.env.IOS_LOG_JUNIT !== "0";
9797
const requestedTests = (process.env.IOS_TESTS || "").trim();
9898
const enableLiveLogStream = process.env.IOS_TEST_LOG_STREAM !== "0";

0 commit comments

Comments
 (0)