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 timeout handling with --inspect-brk/--inspect #4125

Merged
merged 2 commits into from Dec 15, 2019

Conversation

juergba
Copy link
Member

@juergba juergba commented Dec 12, 2019

Description

Mocha disables timeouts while debugging in order to avoid timeout errors.
This is true:

  • when the Node debugging flags are set via Mocha
  • with bin/mocha executable (not bin/_mocha)

Description of the Change

In some cases the disabling of the timeouts did not work due to the option's order.

  • correct: --timeout 2000 --inspect-brk
  • fails: --inspect-brk --timeout 2000

Applicable issues

closes #4110

order of options should not matter
@juergba juergba added type: bug a defect, confirmed by a maintainer semver-patch implementation requires increase of "patch" version number; "bug fixes" area: node.js command-line-or-Node.js-specific labels Dec 12, 2019
@juergba juergba added this to the v7.0.0 milestone Dec 12, 2019
@juergba juergba self-assigned this Dec 12, 2019
Copy link
Contributor

@craigtaub craigtaub left a comment

Choose a reason for hiding this comment

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

Lgtm

@juergba juergba merged commit d4adfa6 into master Dec 15, 2019
@juergba juergba deleted the juergba/inspect-timeout branch December 15, 2019 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: node.js command-line-or-Node.js-specific semver-patch implementation requires increase of "patch" version number; "bug fixes" type: bug a defect, confirmed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression in timeout handling and --inspect-brk
2 participants