-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: app should wait for agent ready on parallel mode #144
Conversation
Codecov ReportBase: 82.57% // Head: 82.11% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #144 +/- ##
==========================================
- Coverage 82.57% 82.11% -0.46%
==========================================
Files 25 25
Lines 2341 2371 +30
Branches 380 381 +1
==========================================
+ Hits 1933 1947 +14
- Misses 408 424 +16
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
bootstrap.js
Outdated
if (process.env.ENABLE_MOCHA_PARALLEL && process.env.AUTO_AGENT) { | ||
// setup agent first | ||
agent.setupAgent(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
得手动 setup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这样也不对,按道理应该先执行 mochaGlobalSetup 才对的
beforeInit: async _app => { | ||
const agent = await setupAgent(); | ||
_app.options.clusterPort = agent.options.clusterPort; | ||
debug('mockParallelApp beforeInit get clusterPort: %s', _app.options.clusterPort); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[skip ci] ## [5.8.3](v5.8.2...v5.8.3) (2023-01-11) ### Bug Fixes * app should wait for agent ready on parallel mode ([#144](#144)) ([205e836](205e836))
🎉 This PR is included in version 5.8.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Checklist
npm test
passesAffected core subsystem(s)
Description of change