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 infinite loop in compact reporter printer #1715

Merged
merged 1 commit into from
Aug 7, 2019

Conversation

sfranzen
Copy link
Contributor

@sfranzen sfranzen commented Aug 6, 2019

Description

I was playing with different reporters and found an infinite loop when using the compact reporter with no further options. This is fixed by ensuring that the message iterator is always advanced in the printRemainingMessages function.

Also simplify some variables with auto deduction.
@horenmar
Copy link
Member

horenmar commented Aug 6, 2019

I believe I've ran into this one recently, but did not have time to dig in back then.

@codecov
Copy link

codecov bot commented Aug 6, 2019

Codecov Report

Merging #1715 into master will increase coverage by 0.34%.
The diff coverage is 85.71%.

@@            Coverage Diff             @@
##           master    #1715      +/-   ##
==========================================
+ Coverage   86.35%   86.69%   +0.34%     
==========================================
  Files         136      136              
  Lines        5187     5333     +146     
==========================================
+ Hits         4479     4623     +144     
- Misses        708      710       +2

@horenmar horenmar merged commit fa096b2 into catchorg:master Aug 7, 2019
@horenmar horenmar added the BugFix label Aug 7, 2019
@sfranzen sfranzen deleted the fix-compact-reporter branch August 7, 2019 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants