]> Cypherpunks repositories - gostls13.git/commitdiff
syslog: use local network for tests
authorRuss Cox <rsc@golang.org>
Mon, 21 Jun 2010 20:48:49 +0000 (13:48 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 21 Jun 2010 20:48:49 +0000 (13:48 -0700)
R=r
CC=golang-dev
https://golang.org/cl/1724042

src/pkg/syslog/syslog_test.go

index 7b95be3b7d563b97643f701e08ec99564e5c6788..7fc90678c04bc12d618a76285d9265aad60f2e85 100644 (file)
@@ -26,7 +26,7 @@ func runSyslog(c net.PacketConn, done chan<- string) {
 }
 
 func startServer(done chan<- string) {
-       c, e := net.ListenPacket("udp", ":0")
+       c, e := net.ListenPacket("udp", "127.0.0.1:0")
        if e != nil {
                log.Exitf("net.ListenPacket failed udp :0 %v", e)
        }