fix: increase global timeout for a test (#30491)

1s is not enought on CI to start running the tests sometimes.
This commit is contained in:
Yury Semikhatsky 2024-04-23 16:10:30 -07:00 committed by GitHub
parent 25b881cd10
commit 73c12f1f77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -214,7 +214,7 @@ for (const useIntermediateMergeReport of [false, true] as const) {
const result = await runInlineTest({
'playwright.config.ts': `
module.exports = {
globalTimeout: 1000,
globalTimeout: 3000,
};
`,
'dir/a.test.js': `
@ -232,7 +232,7 @@ for (const useIntermediateMergeReport of [false, true] as const) {
expect(result.passed).toBe(1);
expect(result.interrupted).toBe(1);
expect(result.didNotRun).toBe(1);
expect(result.output).toContain('Timed out waiting 1s for the test suite to run');
expect(result.output).toContain('Timed out waiting 3s for the test suite to run');
});
test('should not print slow parallel tests', async ({ runInlineTest }) => {