Skip to content

fix: flaky cookie test and failing to close fake server between tests#9608

Merged
ssoroka merged 1 commit intoinfluxdata:masterfrom
sspaink:fixcookietest
Aug 17, 2021
Merged

fix: flaky cookie test and failing to close fake server between tests#9608
ssoroka merged 1 commit intoinfluxdata:masterfrom
sspaink:fixcookietest

Conversation

@sspaink
Copy link
Copy Markdown
Contributor

@sspaink sspaink commented Aug 10, 2021

  • Wrote appropriate unit tests.

The tests for cookie.go were failing randomly, when checking for the expected number of time it should have authenticated sometimes the number would be less then expected and throw the error "2" is not greater than or equal to "3" link to example of a failing test.

This pr fixes the tests by removing the reliance on sleep, also closes each fake http server before the next test to avoid socket: too many open files error.

@sspaink sspaink added fix pr to fix corresponding bug ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. labels Aug 10, 2021
@ssoroka ssoroka merged commit 02ccbec into influxdata:master Aug 17, 2021
@reimda
Copy link
Copy Markdown
Contributor

reimda commented Aug 18, 2021

@sspaink This is marked "fix:", so it seems like a candidate for the 1.19.3 patch release, but it fixes relatively new functionality that isn't in the release-1.19 branch. I just wanted to bring this up as an example of how we can't always use the "fix:" in the semantic commit message to tell us for sure if a commit is appropriate to include in a patch release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix pr to fix corresponding bug ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants