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: Use max for duration and load_time in SummaryNotification #83

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

tomasdundacek
Copy link
Contributor

@tomasdundacek tomasdundacek commented Mar 16, 2024

Hey, I just discovered this gem and was playing around with it this weekend and I love it. Found a small issue though with times measured so here's a fix :)

Context

In SummaryNotification, all the values were added. While this is good for example arrays and errors_outside_of_examples_count, for duration and load_time this does not make much sense and times measured were unrealistic.

Solution

I have opted for max value of the two attributes.

Before:
image

After:
image

Copy link
Owner

@briandunn briandunn left a comment

Choose a reason for hiding this comment

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

Nice fix! Closes #20.

@briandunn briandunn merged commit 0868585 into briandunn:master Mar 18, 2024
48 checks passed
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