File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -853,7 +853,7 @@ func TestPool(t *testing.T) {
853
853
d := newdialer (& net.Dialer {})
854
854
p := newPool (poolConfig {
855
855
Address : address .Address (addr .String ()),
856
- MaxIdleTime : 1 * time .Millisecond ,
856
+ MaxIdleTime : 10 * time .Millisecond ,
857
857
}, WithDialer (func (Dialer ) Dialer { return d }))
858
858
err := p .ready ()
859
859
noerr (t , err )
@@ -862,10 +862,10 @@ func TestPool(t *testing.T) {
862
862
c , err := p .checkOut (context .Background ())
863
863
noerr (t , err )
864
864
865
- // Sleep for 10ms , which will exceed the 1ms connection idle timeout. Then check the
865
+ // Sleep for 20ms , which will exceed the 10ms connection idle timeout. Then check the
866
866
// connection back in and expect that it is not closed because checkIn() should bump the
867
867
// connection idle deadline.
868
- time .Sleep (10 * time .Millisecond )
868
+ time .Sleep (20 * time .Millisecond )
869
869
err = p .checkIn (c )
870
870
noerr (t , err )
871
871
You can’t perform that action at this time.
0 commit comments