diff options
author | Elias Naur <elias.naur@gmail.com> | 2017-09-27 13:36:54 +0200 |
---|---|---|
committer | Elias Naur <elias.naur@gmail.com> | 2017-09-27 13:48:21 +0000 |
commit | 90fdc45585bc18386d5a2d90a062bf86863e917d (patch) | |
tree | e82901456097945d727bb02d9ea5e2a599719cd0 /src/net/dial_test.go | |
parent | 951be1b58d4e8049b8a1f95ef99f6505cc4850b5 (diff) | |
download | go-90fdc45585bc18386d5a2d90a062bf86863e917d.tar.gz go-90fdc45585bc18386d5a2d90a062bf86863e917d.zip |
net: bump TestDialerDualStackFDLeak timeout on iOS
On an iPhone 6 running iOS 11, the TestDialerDualStackFDLeak test
started failing with dial durations just above the limit:
FAIL: TestDialerDualStackFDLeak (0.21s)
dial_test.go:90: got 101.154ms; want <= 95ms
Bump the timeout on iOS.
For the iOS builder.
Change-Id: Id42b471e7cf7d0c84f6e83ed04b395fa1a2d449d
Reviewed-on: https://go-review.googlesource.com/66491
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/net/dial_test.go')
-rw-r--r-- | src/net/dial_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/dial_test.go b/src/net/dial_test.go index a892bf1e14..eba817e706 100644 --- a/src/net/dial_test.go +++ b/src/net/dial_test.go @@ -161,6 +161,8 @@ func dialClosedPort() (actual, expected time.Duration) { // but other platforms should be instantaneous. if runtime.GOOS == "windows" { expected = 1500 * time.Millisecond + } else if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") { + expected = 150 * time.Millisecond } else { expected = 95 * time.Millisecond } |