]> Cypherpunks repositories - gostls13.git/commitdiff
net: allow longer timeout in dialClosedPort test on windows
authorRuss Cox <rsc@golang.org>
Thu, 30 Jul 2015 14:39:07 +0000 (10:39 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 30 Jul 2015 15:19:17 +0000 (15:19 +0000)
The test expects the dial to take 1.0 seconds
on Windows and allows it to go to 1.095 seconds.
That's far too optimistic.
Recent failures are reporting roughly 1.2 seconds.
Let it have 1.5.

Change-Id: Id69811ccb65bf4b4c159301a2b4767deb6ee8d28
Reviewed-on: https://go-review.googlesource.com/12895
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/dial_test.go

index 669fcc8ce10736e2a285068d0683d44f4a0d9a81..ed6d7cc42f135d7a38e204e42e568318efbcf8f6 100644 (file)
@@ -249,7 +249,7 @@ func dialClosedPort() (actual, expected time.Duration) {
        // On Windows, dialing a closed port takes roughly 1 second,
        // but other platforms should be instantaneous.
        if runtime.GOOS == "windows" {
-               expected = 1095 * time.Millisecond
+               expected = 1500 * time.Millisecond
        } else {
                expected = 95 * time.Millisecond
        }