]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix multicast tests
authorDave Cheney <dave@cheney.net>
Fri, 18 Feb 2011 18:48:13 +0000 (13:48 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 18 Feb 2011 18:48:13 +0000 (13:48 -0500)
R=rsc, mikioh, rsc1, dho
CC=golang-dev
https://golang.org/cl/4174056

src/pkg/net/multicast_test.go

index 06d430e90b9393fac361c1e78bec45b9e042590a..32fdec85bdeb07d9848befe282f60ddf9f282694 100644 (file)
@@ -13,6 +13,7 @@ func TestMulticastJoinAndLeave(t *testing.T) {
        if runtime.GOOS == "windows" {
                return
        }
+
        addr := &UDPAddr{
                IP:   IPv4zero,
                Port: 0,
@@ -25,7 +26,7 @@ func TestMulticastJoinAndLeave(t *testing.T) {
        defer conn.Close()
 
        // try to join group
-       mcast := IPv4(224, 0, 0, 251)
+       mcast := IPv4(224, 0, 0, 254)
        err = conn.JoinGroup(mcast)
        if err != nil {
                t.Fatal(err)
@@ -50,6 +51,7 @@ func TestJoinFailureWithIPv6Address(t *testing.T) {
                t.Fatal(err)
        }
        defer conn.Close()
+
        // try to join group
        mcast := ParseIP("ff02::1")
        err = conn.JoinGroup(mcast)