Explicitly set ip in tests

This commit is contained in:
Leonid Bugaev
2016-04-20 21:44:37 +05:00
parent 4cfa33f89c
commit fa11cc04c8
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func TestTCPOutput(t *testing.T) {
}
func startTCP(cb func([]byte)) net.Listener {
listener, err := net.Listen("tcp", ":0")
listener, err := net.Listen("tcp", "127.0.0.1:0")
if err != nil {
log.Fatal("Can't start:", err)