Skip to content

Commit b3b1e12

Browse files
Elias Naurrsc
Elias Naur
authored andcommitted
[release-branch.go1.8] 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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-on: https://go-review.googlesource.com/71330 Run-TryBot: Russ Cox <[email protected]>
1 parent 1ab2a4e commit b3b1e12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/net/dial_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ func dialClosedPort() (actual, expected time.Duration) {
225225
// but other platforms should be instantaneous.
226226
if runtime.GOOS == "windows" {
227227
expected = 1500 * time.Millisecond
228+
} else if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
229+
expected = 150 * time.Millisecond
228230
} else {
229231
expected = 95 * time.Millisecond
230232
}

0 commit comments

Comments
 (0)