mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
Tweak timing sensitive test
This commit is contained in:
parent
932ab58cf7
commit
adb54d06ce
@ -297,7 +297,7 @@ func TestPoolWithoutAcquireTimeoutSet(t *testing.T) {
|
||||
// ... then try to consume 1 more. It should hang forever.
|
||||
// To unblock it we release the previously taken connection in a goroutine.
|
||||
stopDeadWaitTimeout := 5 * time.Second
|
||||
timer := time.AfterFunc(stopDeadWaitTimeout, func() {
|
||||
timer := time.AfterFunc(stopDeadWaitTimeout+100*time.Millisecond, func() {
|
||||
releaseAllConnections(pool, allConnections)
|
||||
})
|
||||
defer timer.Stop()
|
||||
|
Loading…
x
Reference in New Issue
Block a user