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

complete: add SetExitFunc() to override os.Exit in tests #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

charlievieth
Copy link

This eliminates the need to use the unsupported bou.ke/monkey package,
which fails to build on darwin/arm64. A better solution might be to remove
the use of os.Exit entirely since it's only called with os.Exit(0) and exiting
the program should be the responsibility of the caller to Complete.

This eliminates the need to use the unsupported bou.ke/monkey package,
which fails to build on darwin/arm64.
@posener
Copy link
Owner

posener commented Feb 13, 2022

I think that this breaks the current package API. No?

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.

2 participants