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 .only suites nested within each other #2419

Merged
merged 1 commit into from Aug 8, 2016

Conversation

not-an-aardvark
Copy link
Contributor

fixes #2417

The issue was that instead calling itself with child suites, the function for filtering a .only suite was calling itself with the same suite. This resulted in infinite recursion.

@boneskull
Copy link
Member

awesome, thanks again @not-an-aardvark

@boneskull boneskull merged commit 2f21eb0 into mochajs:master Aug 8, 2016
@not-an-aardvark not-an-aardvark deleted the 2417-only-within-only branch July 6, 2017 09:13
sgilroy pushed a commit to TwineHealth/mocha that referenced this pull request Feb 27, 2019
…-only

fix .only suites nested within each other
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.

infinite loop with nested .only()
2 participants