Reenable TestNextNetHTTP on Windows

This commit is contained in:
Luke Hoban
2016-01-23 20:23:36 -08:00
committed by Derek Parker
parent 5477bf10c3
commit 14f26ffda8

View File

@ -436,11 +436,6 @@ func TestNextNetHTTP(t *testing.T) {
{11, 12}, {11, 12},
{12, 13}, {12, 13},
} }
if runtime.GOOS == "windows" {
// TODO: Reenable once we figure out why this test is hanging.
fmt.Println("Skipping TestNextNetHTTP test")
return
}
withTestProcess("testnextnethttp", t, func(p *Process, fixture protest.Fixture) { withTestProcess("testnextnethttp", t, func(p *Process, fixture protest.Fixture) {
go func() { go func() {
for !p.Running() { for !p.Running() {
@ -448,7 +443,7 @@ func TestNextNetHTTP(t *testing.T) {
} }
// Wait for program to start listening. // Wait for program to start listening.
for { for {
conn, err := net.Dial("tcp", ":9191") conn, err := net.Dial("tcp", "localhost:9191")
if err == nil { if err == nil {
conn.Close() conn.Close()
break break