Skip to content

Commit 0bf8909

Browse files
bmerrill42rsc
authored andcommitted
[release-branch.go1.8] net: increase expected time to dial a closed port on all Darwin ports
All current darwin architectures seem to take at least 100ms to dial a closed port, and that was making the all.bash script fail. Fixes #22062 Change-Id: Ib79c4b7a5db2373c95ce5d993cdcbee55cc0667f Reviewed-on: https://go-review.googlesource.com/67350 Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-on: https://go-review.googlesource.com/71331 Run-TryBot: Russ Cox <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent b3b1e12 commit 0bf8909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/dial_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ 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") {
228+
} else if runtime.GOOS == "darwin" {
229229
expected = 150 * time.Millisecond
230230
} else {
231231
expected = 95 * time.Millisecond

0 commit comments

Comments
 (0)