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

Doing some renaming #25

Merged
merged 10 commits into from Dec 12, 2018
Merged

Doing some renaming #25

merged 10 commits into from Dec 12, 2018

Conversation

PandaMagnus
Copy link
Contributor

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

@@ -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>
Copy link
Member

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.


private int _Attempts = 0;
private TimeSpan _Timeout = TimeSpan.MinValue;
private Stopwatch _Sw = new Stopwatch();
Copy link
Member

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.

  1. 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.
  2. 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.

@Keboo Keboo merged commit bd284e8 into master Dec 12, 2018
@PandaMagnus PandaMagnus deleted the Curn-RenamingAndObsolotingOldName branch March 27, 2019 22:09
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.

None yet

2 participants