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

Improve test reliability #1298

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Conversation

tdrwenski
Copy link
Member

@tdrwenski tdrwenski commented Jan 31, 2024

Improve test reliability by checking the actual connections is same as before and after test instead of checking it is 0.

The actualconnections will increase any time a new HTTPConnection is opened, but if this isn't opened with try-with-resources, the connection may not be closed. So if we check if the actualconnections == 0 in our tests, we are testing that everywhere in the tests run before the HTTPConnections have been closed properly, which probably is not always the case.

Description of Changes

Erase this and add a general description of changes, heads-up on any tricky parts, etc., here.

PR Checklist

  • Link to any issues that the PR addresses
  • Add labels
  • Open as a draft PR
    until ready for review
  • Make sure GitHub tests pass
  • Mark PR as "Ready for Review"

@tdrwenski tdrwenski marked this pull request as ready for review January 31, 2024 18:15
@haileyajohnson haileyajohnson merged commit 616a1b9 into Unidata:maint-5.x Jan 31, 2024
10 checks passed
@tdrwenski tdrwenski deleted the improve-tests branch January 31, 2024 19:25
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