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

Tidy up #519

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Tidy up #519

merged 1 commit into from
Aug 21, 2024

Conversation

NathanBaulch
Copy link
Contributor

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

@@ -82,7 +82,7 @@ func TestAttemptWithDelay(t *testing.T) {
})

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.

@@ -187,7 +187,7 @@ func TestAttemptWhileWithDelay(t *testing.T) {
})

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
7 checks passed
@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