mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-26 21:33:38 +03:00
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:
parent
25b881cd10
commit
73c12f1f77
@ -214,7 +214,7 @@ for (const useIntermediateMergeReport of [false, true] as const) {
|
|||||||
const result = await runInlineTest({
|
const result = await runInlineTest({
|
||||||
'playwright.config.ts': `
|
'playwright.config.ts': `
|
||||||
module.exports = {
|
module.exports = {
|
||||||
globalTimeout: 1000,
|
globalTimeout: 3000,
|
||||||
};
|
};
|
||||||
`,
|
`,
|
||||||
'dir/a.test.js': `
|
'dir/a.test.js': `
|
||||||
@ -232,7 +232,7 @@ for (const useIntermediateMergeReport of [false, true] as const) {
|
|||||||
expect(result.passed).toBe(1);
|
expect(result.passed).toBe(1);
|
||||||
expect(result.interrupted).toBe(1);
|
expect(result.interrupted).toBe(1);
|
||||||
expect(result.didNotRun).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 }) => {
|
test('should not print slow parallel tests', async ({ runInlineTest }) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user