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(#zimic): exit process after stopping the interceptor server through CLI #295

Conversation

diego-aquino
Copy link
Member

@diego-aquino diego-aquino commented Jul 14, 2024

Fixes

  • [#zimic] Added a call to process.exit(0) after an interceptor server is stopped in ephemeral mode. This is to make sure that the process does not hangs, even though the server has been stopped. It is not clear to me how hanging happens, but it rarely does in the tests of zimic-test-client.

Documentation

  • [#zimic] Included process.exit(0) to the documentation about interceptor server programmatic usage.
  • [#zimic] Fixed a code snippet still using runCommand, which is no longer available in >=v0.8.

@diego-aquino diego-aquino added this to the v0.8.1 milestone Jul 14, 2024
@diego-aquino diego-aquino self-assigned this Jul 14, 2024
@diego-aquino diego-aquino merged commit df89d5d into canary Jul 14, 2024
15 checks passed
@diego-aquino diego-aquino deleted the @diego-aquino/force-process-exit-after-finished-interceptor-server-cli branch July 14, 2024 14:25
diego-aquino added a commit that referenced this pull request Jul 14, 2024
…gh CLI (#295)

### Fixes
- [#zimic] Added a call to `process.exit(0)` after an interceptor server
is stopped in ephemeral mode. This is to make sure that the process does
not hangs, even though the server has been stopped. It is not clear to
me how hanging happens, but it rarely does in the tests of
`zimic-test-client`.

### Documentation
- [#zimic] Included `process.exit(0)` to the documentation about
interceptor server programmatic usage.
- [#zimic] Fixed a code snippet still using `runCommand`, which is no
longer available in >=v0.8.
Copy link
Contributor

Released in v0.8.1 🎉

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

Successfully merging this pull request may close these issues.

1 participant