Increase test timeout in windows runner

This commit is contained in:
trevor-signal
2026-09-28 13:21:21 -07:00
committed by GitHub
parent ae41e944f2
commit e1c90e93fd
5 changed files with 8 additions and 3 deletions
+2
View File
@@ -325,6 +325,8 @@ jobs:
env:
ARTIFACTS_DIR: artifacts/windows
WORKER_COUNT: 4
# Windows runner is very slow when writing to disk
TEST_ELECTRON_TIMEOUT: 20000
timeout-minutes: 5
- name: Run release tests
+2 -1
View File
@@ -7,7 +7,8 @@
*/
mocha.setup('bdd');
mocha.setup({ timeout: 10000 });
// Can be overridden with TEST_ELECTRON_TIMEOUT
mocha.setup({ timeout: window.testUtilities.timeout ?? 10000 });
let themeSetting = 'light';
@@ -27,7 +27,6 @@ import {
encryptAttachmentV2,
generateKeys,
} from '../../AttachmentCrypto.node.ts';
import { SECOND } from '../../util/durations/index.std.ts';
import { HTTPError } from '../../types/HTTPError.std.ts';
import { itemStorage } from '../../textsecure/Storage.preload.ts';
@@ -42,7 +41,6 @@ const LOCAL_ENCRYPTION_KEYS = Bytes.toBase64(generateKeys());
const ATTACHMENT_SIZE = 1476;
describe('AttachmentBackupManager/JobManager', function attachmentBackupManager(this: Mocha.Suite) {
this.timeout(10 * SECOND);
let backupManager: AttachmentBackupManager | undefined;
let runJob: sinon.SinonSpy;
let copyBackupMedia: sinon.SinonStub;
+1
View File
@@ -215,6 +215,7 @@ declare global {
assert: typeof assert;
testUtilities: {
setup: MochaOptions;
timeout: number | undefined;
debug: (info: unknown) => void;
onTestEvent: (event: unknown) => void;
initialize: () => Promise<void>;
+3
View File
@@ -81,6 +81,9 @@ let workerCount = 1;
window.testUtilities = {
setup,
timeout: process.env.TEST_ELECTRON_TIMEOUT
? parseInt(process.env.TEST_ELECTRON_TIMEOUT, 10)
: undefined,
onTestEvent(event: unknown) {
return ipc.invoke('ci:test-electron:event', event);