Bind to less used port in test

This commit is contained in:
Derek Parker
2015-08-08 14:30:23 -05:00
parent e940fa1274
commit 869884b9ab
2 changed files with 3 additions and 3 deletions

View File

@ -324,14 +324,14 @@ func TestNextNetHTTP(t *testing.T) {
}
// Wait for program to start listening.
for {
conn, err := net.Dial("tcp", ":8080")
conn, err := net.Dial("tcp", ":9191")
if err == nil {
conn.Close()
break
}
time.Sleep(50 * time.Millisecond)
}
http.Get("http://localhost:8080")
http.Get("http://localhost:9191")
}()
if err := p.Continue(); err != nil {
t.Fatal(err)