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

Warn about at_exit hooks being skipped if you force quit. #3054

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented Dec 1, 2023

If you force quit [issue a double interupt e.g CTRL-C CTRL-C] rspec, at_exit hooks will be skipped through our usage of exit!(1), this is intended as an emergency get out [and not a "I'm done" with this run] quit as a normal exit finishes running the current spec and runs our hooks for clenaup, there is some confusion about this, so this is an attempt to improve the message.

Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

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

Cosmetic: Do we use square brackets in the messages?

Thanks, this makes total sense along with your explanation #3053 (comment)

Quite an odd rspec-expectations failure. I don’t think I’ve seen this before. Wondering if this is caused by a recent with fix.

@JonRowe JonRowe merged commit f273314 into main Dec 5, 2023
27 of 29 checks passed
@JonRowe JonRowe deleted the improve-force-quit-message branch December 5, 2023 21:44
JonRowe added a commit that referenced this pull request Dec 6, 2023
Warn about at_exit hooks being skipped if you force quit.
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.

None yet

2 participants