Skip to content

Commit 5f83b2d

Browse files
bmerrill42ianlancetaylor
authored andcommitted
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]>
1 parent 273b657 commit 5f83b2d

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
@@ -161,7 +161,7 @@ func dialClosedPort() (actual, expected time.Duration) {
161161
// but other platforms should be instantaneous.
162162
if runtime.GOOS == "windows" {
163163
expected = 1500 * time.Millisecond
164-
} else if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
164+
} else if runtime.GOOS == "darwin" {
165165
expected = 150 * time.Millisecond
166166
} else {
167167
expected = 95 * time.Millisecond

0 commit comments

Comments
 (0)