From fdd94cdb8dae14fc5c962e870bbf80bd0e6ba83f Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:15:43 +0200 Subject: [PATCH] test: use longer timeout on contentTracing tests on WOA (#42553) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt --- spec/api-content-tracing-spec.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/spec/api-content-tracing-spec.ts b/spec/api-content-tracing-spec.ts index 98c34a4c8ac1..a026472b7ce1 100644 --- a/spec/api-content-tracing-spec.ts +++ b/spec/api-content-tracing-spec.ts @@ -25,7 +25,12 @@ ifdescribe(!(['arm', 'arm64'].includes(process.arch)) || (process.platform !== ' }); describe('startRecording', function () { - this.timeout(5e3); + if (process.platform === 'win32' && process.arch === 'arm64') { + // WOA needs more time + this.timeout(10e3); + } else { + this.timeout(5e3); + } const getFileSizeInKiloBytes = (filePath: string) => { const stats = fs.statSync(filePath); @@ -84,7 +89,12 @@ ifdescribe(!(['arm', 'arm64'].includes(process.arch)) || (process.platform !== ' }); describe('stopRecording', function () { - this.timeout(5e3); + if (process.platform === 'win32' && process.arch === 'arm64') { + // WOA needs more time + this.timeout(10e3); + } else { + this.timeout(5e3); + } it('does not crash on empty string', async () => { const options = {