Skip to content

Fix Guava compatibility issues and flaky tests #648

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

Closed
wants to merge 4 commits into from

Conversation

valfirst
Copy link

@valfirst valfirst commented Jun 7, 2017

valfirst added 3 commits June 7, 2017 09:41
…AndPort.getHost

com.google.common.net.HostAndPort.getHostText is removed in Guava 22.0, so usage of deprecated API
causes runtime errors
Operations may take less than 1 millisecond at powerful machines, so rounding to milliseconds
results to 0 time duration. Usage of nanoseconds allows to make tests more stable
Redirection leads to an extra page in Har and as result to failing tests.
Change of URL allows to avoid redirection and tests work as expected.
@jekh
Copy link
Collaborator

jekh commented Jul 16, 2017

Thanks, @valfirst! Very good improvements here. I split this PR into a couple different PRs and cherry-picked some of your commits (#666, #668, #669). I went a step further with the legacy HarTest fixes and simply removed those tests completely; having tests that rely on third-party websites is extremely brittle.

Since the essence of this PR has now been implemented in the above-mentioned PRs, I'll close this one.

Thanks again for this! I'll get a release out with the guava fixes very soon.

@jekh jekh closed this Jul 16, 2017
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.

On Guava 22: NoSuchMethodError: com.google.common.net.HostAndPort.fromHost
2 participants