Commit 9cd2c700 authored by Mikio Hara's avatar Mikio Hara

net: deflake TestDialTimeoutMaxDuration

Fixes #15745.

Change-Id: I6f9a1dcf0b1d97cb443900c7d8da09ead83d4b6a
Reviewed-on: https://go-review.googlesource.com/23243
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 8527b8ef
...@@ -124,7 +124,7 @@ func TestDialTimeoutMaxDuration(t *testing.T) { ...@@ -124,7 +124,7 @@ func TestDialTimeoutMaxDuration(t *testing.T) {
for i, tt := range dialTimeoutMaxDurationTests { for i, tt := range dialTimeoutMaxDurationTests {
ch := make(chan error) ch := make(chan error)
max := time.NewTimer(100 * time.Millisecond) max := time.NewTimer(250 * time.Millisecond)
defer max.Stop() defer max.Stop()
go func() { go func() {
d := Dialer{Timeout: tt.timeout} d := Dialer{Timeout: tt.timeout}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment