mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
TestContextWatcherStress: reduce sleep counts
This commit is contained in:
parent
c861bce438
commit
fb47e1abbb
@ -104,7 +104,9 @@ func TestContextWatcherStress(t *testing.T) {
|
||||
}
|
||||
|
||||
// Without time.Sleep, cw.Unwatch will almost always run before the cancel func which means cancel will never happen. This gives us a better mix.
|
||||
if i%3 == 0 {
|
||||
if i%333 == 0 {
|
||||
// on Windows Sleep takes more time than expected so we try to get here less frequently to avoid
|
||||
// the CI takes a long time
|
||||
time.Sleep(time.Nanosecond)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user