CodeceptJS: [Asking for help] Process are blocking when throw error in scenario with Retry enabled
When i run to all test (~70) in 4 workers, at the end, i get stuck with this error message
✖ "after all" hook: codeceptjs.afterSuite in "Homepage feature" in 0ms
- CodeceptJS version: 3.6.2
- NodeJS Version: 20
- playwright: 1.43.0
- allure-codeceptjs: 2.15.1
- Configuration file:
Playwright: {
url: testConfig.url,
show: false,
locale: "en-EN",
browser: 'chromium',
chromium: {
args: ['--auth-server-whitelist=""'],
},
ignoreHTTPSErrors: true,
fullPageScreenshots: true,
windowSize: '1920x1080',
waitForAction: 250,
waitForTimeout: 10000,
waitForNavigation: 'load',
restart: 'context',
keepCookies: false,
keepBrowserState: false
},
I have allready open here https://github.com/codeceptjs/CodeceptJS/issues/3640 an issue before, but no response and the probleme has gone, but it’s here again 😢
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 25 (18 by maintainers)
Commits related to this issue
- fix: add check on test can be undefined Investigation are explain on this issue https://github.com/codeceptjs/CodeceptJS/issues/4358 — committed to Horsty80/CodeceptJS by Horsty80 2 years ago
I think using a
console.loginside of this force JavaScript to load this part of code. And thus importSuitefrom Mocha: https://github.com/Horsty80/CodeceptJS/blob/3c009e0759b3ddda7caa1984209fe248213553d2/lib/scenario.js#L175test.retriesis an inside method of Mocha: https://github.com/mochajs/mocha/blob/master/lib/suite.js#L129to me,
test.retriesshould not be undefined. Not sure where should be the root cause