diff options
author | Author Name <brett.j.merrill94@gmail.com> | 2017-09-30 13:47:48 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2017-10-20 12:37:45 -0400 |
commit | a0be3483e14c3d31afb93286227eae148c8223f5 (patch) | |
tree | 51a7af59aadbf70f0c906650229a68cda49c2250 | |
parent | 41161ce66642a835cfbad845af15d3d00e2efd7f (diff) | |
download | go-a0be3483e14c3d31afb93286227eae148c8223f5.tar.gz go-a0be3483e14c3d31afb93286227eae148c8223f5.zip |
[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 <iant@golang.org>
-rw-r--r-- | src/net/dial_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/dial_test.go b/src/net/dial_test.go index ea50fa5d67..e50ab961ce 100644 --- a/src/net/dial_test.go +++ b/src/net/dial_test.go @@ -225,7 +225,7 @@ 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") { + } else if runtime.GOOS == "darwin" { expected = 150 * time.Millisecond } else { expected = 95 * time.Millisecond |