mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-10-02 01:40:02 +01:00
Increase test timeout in windows runner
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Vendored
+1
@@ -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>;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user