1
0
mirror of https://github.com/golang/go synced 2024-11-23 20:30:04 -07:00

Revert "net: add missing error check in test"

This reverts commit ec521467e3.

Reson for revert: The test cases using slowDst4 and slowDst6 are
fragile. We need to find out a better approach to the trick on the IP
routeability.

Change-Id: I544453886e809d1c7b339673d8f1d5bdef357147
Reviewed-on: https://go-review.googlesource.com/c/163919
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Mikio Hara 2019-02-27 20:56:43 +09:00 committed by Bryan C. Mills
parent 43732816be
commit 850e3636d5

View File

@ -338,11 +338,6 @@ func TestDialParallel(t *testing.T) {
if c != nil {
c.Close()
}
if tt.expectOk && err != nil {
t.Errorf("#%d (cancel): got %v; want nil", i, err)
} else if !tt.expectOk && err == nil {
t.Errorf("#%d (cancel): got nil; want non-nil", i)
}
elapsed = time.Now().Sub(startTime)
if elapsed > 100*time.Millisecond {
t.Errorf("#%d (cancel): got %v; want <= 100ms", i, elapsed)