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: convert unhandled rejection to uncaught exception #235

Merged
merged 2 commits into from Aug 5, 2023

Conversation

killagu
Copy link
Contributor

@killagu killagu commented Aug 3, 2023

Mocha do not catch unhandled rejection by default. Case will faield until timeout. set --unhandled-rejections to strict, let case fail fast.

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

Mocha do not catch unhandled rejection by default. Case
will faield until timeout. set `--unhandled-rejections`
to strict, let case fail fast.
@vercel
Copy link

vercel bot commented Aug 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
egg-bin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 5, 2023 4:32am

@fengmk2
Copy link
Member

fengmk2 commented Aug 3, 2023

eslint 忽略一下 fixtures 目录

Copy link
Member

@fengmk2 fengmk2 left a comment

Choose a reason for hiding this comment

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

+1

@fengmk2
Copy link
Member

fengmk2 commented Aug 4, 2023

@killagu ci 修复一下

@fengmk2
Copy link
Member

fengmk2 commented Aug 5, 2023

@fengmk2 fengmk2 merged commit 1e25880 into master Aug 5, 2023
17 checks passed
@fengmk2 fengmk2 deleted the fix/unhandled-rejection branch August 5, 2023 07:18
fengmk2 pushed a commit that referenced this pull request Aug 5, 2023
[skip ci]

## [6.4.2](v6.4.1...v6.4.2) (2023-08-05)

### Bug Fixes

* convert unhandled rejection to uncaught exception ([#235](#235)) ([1e25880](1e25880))
@fengmk2
Copy link
Member

fengmk2 commented Aug 5, 2023

@killagu chair-bin 使用的还是 5.x https://github.com/eggjs/egg-bin/tree/5.x ,是否也需要 pick 过去?

killagu added a commit that referenced this pull request Aug 7, 2023
Mocha do not catch unhandled rejection by default. Case
will faield until timeout. set `--unhandled-rejections`
to strict, let case fail fast.
killagu added a commit that referenced this pull request Aug 7, 2023
Mocha do not catch unhandled rejection by default. Case
will faield until timeout. set `--unhandled-rejections`
to strict, let case fail fast.
killagu added a commit that referenced this pull request Aug 7, 2023
Mocha do not catch unhandled rejection by default. Case
will faield until timeout. set `--unhandled-rejections`
to strict, let case fail fast.
killagu added a commit that referenced this pull request Aug 7, 2023
* fix: convert unhandled rejection to uncaught exception (#235)

Mocha do not catch unhandled rejection by default. Case
will faield until timeout. set `--unhandled-rejections`
to strict, let case fail fast.
fengmk2 pushed a commit that referenced this pull request Aug 7, 2023
[skip ci]

## [5.14.1](v5.14.0...v5.14.1) (2023-08-07)

### Bug Fixes

* convert unhandled rejection to uncaught exception ([#235](#235)) ([#236](#236)) ([e98e079](e98e079))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants