-
Notifications
You must be signed in to change notification settings - Fork 0
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
Doing some renaming #25
Conversation
Adding in an overload for ignoring 5 exception types
@@ -14,7 +14,8 @@ | |||
<RepositoryUrl>https://github.com/IntelliTect/IntelliTect</RepositoryUrl> | |||
<RepositoryType>Git</RepositoryType> | |||
<PackageTags>ui test, automated test, testing, api test, web test, integration test, await, async</PackageTags> | |||
<PackageReleaseNotes>Initial release for long-term home, independant from Selenium dependency</PackageReleaseNotes> | |||
<PackageReleaseNotes>Function rename to get away from Selenium terminology, and to use a more generic (but accurate) name for what the functions do (new terminology: Poll.UntilNoExceptions) | |||
Obsoleting old Wait.Until terminology</PackageReleaseNotes> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something I have done on my OSS project is to make this a URL to a .md file or wiki page on the repo. Then I can easily update the release notes without needing to spin a new NuGet package.
…ject to use for replicating functionality we want to test for
|
||
private int _Attempts = 0; | ||
private TimeSpan _Timeout = TimeSpan.MinValue; | ||
private Stopwatch _Sw = new Stopwatch(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there are a couple of logic errors here.
- These fields only appear to be used inside of the ThrowExceptions method. By keeping them as fields instead of local variables inside of the method it means you are keeping the state around. Meaning subsequent calls to this method are dependant of previous calls. If this is not intended I would move them inside of the method.
- This does not actually start a stopwatch. In the
ThrowExceptions
you do start it on the first pass, but then you never Stop/Restart the stop watch. Meaning that you might never get inside of the while loop.
Adding in an overload for ignoring 5 exception types
Adding in a new class with a more generic, but more descriptive, name for the provided functionality
Obsoleted old Wait.Until terminology
Adding/tweaking some unit tests to be more reliable