mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 04:35:19 +08:00
Reenable TestNextNetHTTP on Windows
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user