From 869884b9ab7dc61100dc8975c79b0625da666df7 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Sat, 8 Aug 2015 14:30:23 -0500 Subject: [PATCH] Bind to less used port in test --- _fixtures/testnextnethttp.go | 2 +- proc/proc_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_fixtures/testnextnethttp.go b/_fixtures/testnextnethttp.go index 403952c5..afd5b7ab 100644 --- a/_fixtures/testnextnethttp.go +++ b/_fixtures/testnextnethttp.go @@ -12,5 +12,5 @@ func main() { header := w.Header().Get("Content-Type") w.Write([]byte(msg + header)) }) - http.ListenAndServe(":8080", nil) + http.ListenAndServe(":9191", nil) } diff --git a/proc/proc_test.go b/proc/proc_test.go index 9381b465..10df688e 100644 --- a/proc/proc_test.go +++ b/proc/proc_test.go @@ -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)