Skip to content
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: dont auto require egg-mock #206

Merged
merged 6 commits into from
Jan 11, 2023
Merged

fix: dont auto require egg-mock #206

merged 6 commits into from
Jan 11, 2023

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Jan 10, 2023

eggjs/mock#142 (comment)

fixed by eggjs/mock#144

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@@ -270,7 +270,6 @@ describe('test/lib/cmd/test.test.js', () => {

// fail on github action ubuntu
it('test parallel', () => {
if (process.platform !== 'darwin') return;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

只在 linux 可以复现。

@codecov
Copy link

codecov bot commented Jan 10, 2023

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (c45d06f) compared to base (c267288).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #206   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines           93        93           
  Branches        16        16           
=========================================
  Hits            93        93           

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@fengmk2
Copy link
Member Author

fengmk2 commented Jan 10, 2023

image
看起来是 linux 下 detectPort 返回为空

@fengmk2
Copy link
Member Author

fengmk2 commented Jan 10, 2023

image
真找到原因了。

eggjs/mock#130

@fengmk2
Copy link
Member Author

fengmk2 commented Jan 10, 2023

https://github.com/eggjs/egg-mock/blob/master/lib/parallel/app.js#L38
image

parallel/app.js 没有拿到 env.CLUSTER_PORT 环境变量

@fengmk2 fengmk2 marked this pull request as ready for review January 11, 2023 01:29
@fengmk2 fengmk2 merged commit e703507 into master Jan 11, 2023
@fengmk2 fengmk2 deleted the fix-egg-mock branch January 11, 2023 01:35
atian25 pushed a commit that referenced this pull request Jan 11, 2023
[skip ci]

## [5.12.2](v5.12.1...v5.12.2) (2023-01-11)

### Bug Fixes

* dont auto require egg-mock ([#206](#206)) ([e703507](e703507)), closes [/github.com/eggjs/mock/pull/142#issuecomment-1377450602](https://github.com/eggjs//github.com/eggjs/egg-mock/pull/142/issues/issuecomment-1377450602)
@github-actions
Copy link

🎉 This PR is included in version 5.12.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant