Skip to content

Commit e3b956c

Browse files
babyTsakhesoleg-jukovec
authored andcommitted
tests: fix flaky_TestConnectionHandlerOpenUpdateClose
Increased the time CheckTimeout to 100 milliseconds. The previous timeout leads to too early fail in pool.Connect. Closes #502
1 parent 89cf2e4 commit e3b956c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
3333

3434
### Fixed
3535

36+
* Fixed the fluctuating behavior of the TestConnectionHandlerOpenUpdateClose
37+
test by increasing the waiting time (#502).
38+
3639
## [v2.4.1] - 2025-10-16
3740

3841
This maintenance release marks the end of active development on the `v2`

pool/connection_pool_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ func TestConnectionHandlerOpenUpdateClose(t *testing.T) {
11231123

11241124
h := &testHandler{}
11251125
poolOpts := pool.Opts{
1126-
CheckTimeout: 100 * time.Microsecond,
1126+
CheckTimeout: 100 * time.Millisecond,
11271127
ConnectionHandler: h,
11281128
}
11291129
connPool, err := pool.ConnectWithOpts(ctx, poolInstances, poolOpts)

0 commit comments

Comments
 (0)