diff options
| author | mattn <mattn.jp@gmail.com> | 2015-01-19 16:56:04 +0900 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2015-02-10 00:44:05 +0000 |
| commit | ea22a08fd4f8ebb296baf4ff59861d8885ac3435 (patch) | |
| tree | 948beff49620c6d700aebf48e7240aaadbdcfca6 /src/net/interface_test.go | |
| parent | e6fbce3596c1200825db78d338b98cbc80dc5665 (diff) | |
| download | go-ea22a08fd4f8ebb296baf4ff59861d8885ac3435.tar.xz | |
net: re-implement Interfaces and InterfaceAddrs for IPNet, IPv6 on Windows
Fixes #5395
Change-Id: I4322bc8a974d04d9bae6b48c71c5d32d9252973c
Reviewed-on: https://go-review.googlesource.com/3024
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Diffstat (limited to 'src/net/interface_test.go')
| -rw-r--r-- | src/net/interface_test.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/net/interface_test.go b/src/net/interface_test.go index fbf15de4d3..15c0cd7be4 100644 --- a/src/net/interface_test.go +++ b/src/net/interface_test.go @@ -38,8 +38,7 @@ func ipv6LinkLocalUnicastAddr(ifi *Interface) string { return "" } for _, ifa := range ifat { - switch ifa := ifa.(type) { - case *IPNet: + if ifa, ok := ifa.(*IPNet); ok { if ifa.IP.To4() == nil && ifa.IP.IsLinkLocalUnicast() { return ifa.IP.String() } @@ -49,10 +48,6 @@ func ipv6LinkLocalUnicastAddr(ifi *Interface) string { } func TestInterfaces(t *testing.T) { - if runtime.GOOS == "windows" { - t.Skip("temporarily disabled until golang.org/issue/5395 is fixed") - } - ift, err := Interfaces() if err != nil { t.Fatal(err) @@ -110,10 +105,6 @@ func TestInterfaces(t *testing.T) { } func TestInterfaceAddrs(t *testing.T) { - if runtime.GOOS == "windows" { - t.Skip("temporarily disabled until golang.org/issue/5395 is fixed") - } - ift, err := Interfaces() if err != nil { t.Fatal(err) |
