Skip to content

Fixes #2841 #4488

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

Merged
merged 5 commits into from
Oct 15, 2023
Merged

Fixes #2841 #4488

merged 5 commits into from
Oct 15, 2023

Conversation

OsirisTerje
Copy link
Member

Added fix from @mikkelbu, comment #2841 (comment)
Added test to verify it

@OsirisTerje
Copy link
Member Author

MacOS wasnt happy with the test:

1) Failed : NUnit.Framework.Tests.Constraints.DelayedConstraintTests.ThatPollingCallsDelegateCorrectNumberOfTimes
  Assert.That(PollCount, Is.EqualTo(4).After(100, 25))
  Expected: 4 after 100 milliseconds delay
  But was:  3
   at NUnit.Framework.Tests.Constraints.DelayedConstraintTests.ThatPollingCallsDelegateCorrectNumberOfTimes() in /Users/runner/work/nunit/nunit/src/NUnitFramework/tests/Constraints/DelayedConstraintTests.cs:line 241

Copy link
Member

@manfred-brands manfred-brands left a comment

Choose a reason for hiding this comment

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

The change is correct, I only have a suggestion to simplify the code.
And adding a check on pollingIntervalInMilliseconds > 0 would be nice.

Copy link
Member

@mikkelbu mikkelbu left a comment

Choose a reason for hiding this comment

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

LGTM

@OsirisTerje OsirisTerje merged commit 43aba69 into master Oct 15, 2023
@OsirisTerje OsirisTerje deleted the Issue2841 branch October 15, 2023 08:49
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