Skip to content

Conversation

@NathanBaulch
Copy link
Contributor

Just some minor tidy up - mostly spelling, grammar, newline inconsistencies, trailing whitespace, redundant types, etc.


is.Equal(iter1, 1)
is.Greater(dur1, 0*time.Millisecond)
is.GreaterOrEqual(dur1, 0*time.Millisecond)
Copy link
Contributor

Choose a reason for hiding this comment

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

How could be invalid?

I mean this test will always pass. A duration is always positive, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could be my hardware or the fact that I'm running on Windows, but for me the first call to AttemptWithDelay (which succeeds immediately) returns within the minimum monotonic time period, so these tests always fail.


is.Equal(iter1, 1)
is.Greater(dur1, 0*time.Millisecond)
is.GreaterOrEqual(dur1, 0*time.Millisecond)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same?

@samber
Copy link
Owner

samber commented Aug 20, 2024

Wow. That much??

Me, trying to write documentation in English before the Github Copilot era:

@samber
Copy link
Owner

samber commented Aug 20, 2024

(tests are broken)

@NathanBaulch
Copy link
Contributor Author

Were you aware that I'm Australian before posting that gif? 😛 Don't worry, we don't take ourselves too seriously!
The unit tests should be fixed now.

@samber
Copy link
Owner

samber commented Aug 21, 2024

Ahah, sorry. I missed that little detail. 😳 🤣

@samber samber merged commit db0f4d2 into samber:master Aug 21, 2024
@NathanBaulch NathanBaulch deleted the linting branch August 22, 2024 00:00
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.

3 participants