Skip to content

Commit 9eaa736

Browse files
[test optimization] Improve gatherPayloadsMaxTimeout error reporting (#7784)
1 parent 10b22f9 commit 9eaa736

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

integration-tests/ci-visibility-intake.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ class FakeCiVisIntake extends FakeAgent {
362362
this.off('message', messageHandler)
363363
resolve()
364364
} catch (e) {
365-
// we'll try again when a new payload arrives
365+
// Assertion not yet satisfied — we'll try again when a new payload arrives.
366+
// The timeout handler will re-run onPayload and reject with the actual error.
366367
}
367368
}
368369
}

integration-tests/cypress/cypress.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ moduleTypes.forEach(({
369369
testTestEvent.content.meta[TEST_SOURCE_FILE].endsWith('spec-source-line.cy.ts'),
370370
`TEST_SOURCE_FILE should point to TypeScript source, got: ${testTestEvent.content.meta[TEST_SOURCE_FILE]}`
371371
)
372-
}, 120000)
372+
}, 60000)
373373

374374
// Run Cypress with the pre-compiled JS spec (compiled from spec-source-line.cy.ts).
375375
// Cypress bundles the compiled JS via its own preprocessor; the plugin resolves
@@ -459,7 +459,7 @@ moduleTypes.forEach(({
459459
fallbackEvent.content.meta[TEST_SOURCE_FILE].endsWith('spec-source-line-fallback.cy.ts'),
460460
`TEST_SOURCE_FILE should point to TypeScript source, got: ${fallbackEvent.content.meta[TEST_SOURCE_FILE]}`
461461
)
462-
}, 120000)
462+
}, 60000)
463463

464464
childProcess = exec(testCommand, {
465465
cwd,
@@ -507,7 +507,7 @@ moduleTypes.forEach(({
507507
noMatchEvent.content.meta[TEST_SOURCE_FILE].endsWith('spec-source-line-no-match.cy.ts'),
508508
`TEST_SOURCE_FILE should point to TypeScript source, got: ${noMatchEvent.content.meta[TEST_SOURCE_FILE]}`
509509
)
510-
}, 120000)
510+
}, 60000)
511511

512512
childProcess = exec(testCommand, {
513513
cwd,
@@ -549,7 +549,7 @@ moduleTypes.forEach(({
549549
jsInvocationDetailsEvent.content.meta[TEST_SOURCE_FILE]
550550
}`
551551
)
552-
}, 120000)
552+
}, 60000)
553553

554554
childProcess = exec(testCommand, {
555555
cwd,
@@ -1850,7 +1850,7 @@ moduleTypes.forEach(({
18501850

18511851
const newTests = tests.filter(test => test.meta[TEST_IS_NEW] === 'true')
18521852
assert.strictEqual(newTests.length, 0)
1853-
}, 120000)
1853+
}, 60000)
18541854

18551855
const specToRun = 'cypress/e2e/spec.cy.js'
18561856

@@ -3285,7 +3285,7 @@ moduleTypes.forEach(({
32853285
const tests = events.filter(event => event.type === 'test').map(event => event.content)
32863286
// it is not retried
32873287
assert.strictEqual(tests.length, 1)
3288-
}, 120000)
3288+
}, 60000)
32893289

32903290
const {
32913291
NODE_OPTIONS,

integration-tests/playwright/playwright.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ versions.forEach((version) => {
685685

686686
const retriedTests = tests.filter(test => test.meta[TEST_IS_RETRY] === 'true')
687687
assert.strictEqual(retriedTests.length, 0)
688-
}, 120000)
688+
}, 60000)
689689

690690
childProcess = exec(
691691
'./node_modules/.bin/playwright test -c playwright.config.js',

0 commit comments

Comments
 (0)