Skip to content

tests: fix flaky_TestConnectionHandlerOpenUpdateClose#507

Merged
oleg-jukovec merged 1 commit intomasterfrom
babyTsakhes/gh-502-flaky_TestConnectionHandlerOpenUpdateClose
Feb 3, 2026
Merged

tests: fix flaky_TestConnectionHandlerOpenUpdateClose#507
oleg-jukovec merged 1 commit intomasterfrom
babyTsakhes/gh-502-flaky_TestConnectionHandlerOpenUpdateClose

Conversation

@babyTsakhes
Copy link
Copy Markdown
Collaborator

@babyTsakhes babyTsakhes commented Dec 1, 2025

tests: fix flaky_TestConnectionHandlerOpenUpdateClose

  • Increased the waiting time to milliseconds.
  • Changed the require.Nilf on require.NoError.

Closes #502

@babyTsakhes babyTsakhes force-pushed the babyTsakhes/gh-502-flaky_TestConnectionHandlerOpenUpdateClose branch from 1dd596b to 6f4180e Compare December 9, 2025 14:35
@babyTsakhes babyTsakhes marked this pull request as ready for review December 9, 2025 14:38
@babyTsakhes
Copy link
Copy Markdown
Collaborator Author

Changes are ready. Please look this.

@babyTsakhes babyTsakhes force-pushed the babyTsakhes/gh-502-flaky_TestConnectionHandlerOpenUpdateClose branch from 6f4180e to a0bc666 Compare December 15, 2025 19:25
Comment thread pool/connection_pool_test.go
Comment thread pool/connection_pool_test.go Outdated
@babyTsakhes babyTsakhes force-pushed the babyTsakhes/gh-502-flaky_TestConnectionHandlerOpenUpdateClose branch 2 times, most recently from 4ce2ff8 to cdc571e Compare January 9, 2026 17:29
@babyTsakhes
Copy link
Copy Markdown
Collaborator Author

The problem has not been solved yet. Most likely, the problem lies elsewhere, not in time.

@babyTsakhes babyTsakhes force-pushed the babyTsakhes/gh-502-flaky_TestConnectionHandlerOpenUpdateClose branch from cdc571e to 44195e6 Compare January 11, 2026 19:08
Comment thread pool/connection_pool_test.go Outdated
@babyTsakhes
Copy link
Copy Markdown
Collaborator Author

Okay, I'll take a look. At the moment, the test is not flaking, but unfortunately, the time reduction is insignificant.

@babyTsakhes babyTsakhes force-pushed the babyTsakhes/gh-502-flaky_TestConnectionHandlerOpenUpdateClose branch from 44195e6 to c5bc08d Compare January 27, 2026 08:46
@babyTsakhes
Copy link
Copy Markdown
Collaborator Author

While I'm at work, I seem to have found the cause of the problems. discovered is not updated after switching to RO.

@babyTsakhes babyTsakhes force-pushed the babyTsakhes/gh-502-flaky_TestConnectionHandlerOpenUpdateClose branch from c5bc08d to fbdbc18 Compare January 31, 2026 16:03
@babyTsakhes
Copy link
Copy Markdown
Collaborator Author

I'm waiting for the main branch to be updated so that all the tests work. My local tests passed even 50,000 repetitions. Take a look, please.

@babyTsakhes
Copy link
Copy Markdown
Collaborator Author

We discussed it on a conference call. After all, it's about the CheckTimeout time, we decided that 100ms would be enough.

@babyTsakhes babyTsakhes force-pushed the babyTsakhes/gh-502-flaky_TestConnectionHandlerOpenUpdateClose branch from e8283d2 to fbdbc18 Compare January 31, 2026 16:36
Increased the time CheckTimeout to 100 milliseconds. The previous
timeout leads to too early fail in pool.Connect.

Closes #502
@oleg-jukovec oleg-jukovec force-pushed the babyTsakhes/gh-502-flaky_TestConnectionHandlerOpenUpdateClose branch from fbdbc18 to adba830 Compare February 3, 2026 11:05
@oleg-jukovec oleg-jukovec merged commit e3b956c into master Feb 3, 2026
42 of 43 checks passed
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.

tests: flaky TestConnectionHandlerOpenUpdateClose

3 participants