Commit 42a61b92 authored by Rob Pike's avatar Rob Pike

windows: fix netchan test by using 127.0.0.1.

Re-enable the test on Windows.

R=brainman, alex.brainman
CC=golang-dev
https://golang.org/cl/2244041
parent 289432da
...@@ -189,7 +189,6 @@ endif ...@@ -189,7 +189,6 @@ endif
# Disable tests that windows cannot run yet. # Disable tests that windows cannot run yet.
ifeq ($(GOOS),windows) ifeq ($(GOOS),windows)
NOTEST+=exec # no pipe NOTEST+=exec # no pipe
NOTEST+=netchan # net.Dial("tcp", "", "0.0.0.0:80") doesn't work on windows
NOTEST+=os # many things unimplemented NOTEST+=os # many things unimplemented
NOTEST+=os/signal # no signals NOTEST+=os/signal # no signals
NOTEST+=path # tree walking does not work NOTEST+=path # tree walking does not work
......
...@@ -151,7 +151,7 @@ type value struct { ...@@ -151,7 +151,7 @@ type value struct {
// This test cross-connects a pair of exporter/importer pairs. // This test cross-connects a pair of exporter/importer pairs.
func TestCrossConnect(t *testing.T) { func TestCrossConnect(t *testing.T) {
e1, err := NewExporter("tcp", ":0") e1, err := NewExporter("tcp", "127.0.0.1:0")
if err != nil { if err != nil {
t.Fatal("new exporter:", err) t.Fatal("new exporter:", err)
} }
...@@ -160,7 +160,7 @@ func TestCrossConnect(t *testing.T) { ...@@ -160,7 +160,7 @@ func TestCrossConnect(t *testing.T) {
t.Fatal("new importer:", err) t.Fatal("new importer:", err)
} }
e2, err := NewExporter("tcp", ":0") e2, err := NewExporter("tcp", "127.0.0.1:0")
if err != nil { if err != nil {
t.Fatal("new exporter:", err) t.Fatal("new exporter:", err)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment