test: use longer timeout on contentTracing tests on WOA (#42537)

This commit is contained in:
John Kleinschmidt 2024-06-18 03:37:18 -05:00 committed by GitHub
parent 6d4c2057e4
commit ae88e64c88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = {