Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

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 force-pushed the improve-force-quit-message branch from 6e7b15c to 59d5f3a Compare December 5, 2023 20:50
@JonRowe JonRowe merged commit f273314 into main Dec 5, 2023
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants