Commit 90847a85 authored by Dave Cheney's avatar Dave Cheney Committed by Russ Cox

net: fix multicast tests

R=rsc, mikioh, rsc1, dho
CC=golang-dev
https://golang.org/cl/4174056
parent 7e6488f9
...@@ -13,6 +13,7 @@ func TestMulticastJoinAndLeave(t *testing.T) { ...@@ -13,6 +13,7 @@ func TestMulticastJoinAndLeave(t *testing.T) {
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
return return
} }
addr := &UDPAddr{ addr := &UDPAddr{
IP: IPv4zero, IP: IPv4zero,
Port: 0, Port: 0,
...@@ -25,7 +26,7 @@ func TestMulticastJoinAndLeave(t *testing.T) { ...@@ -25,7 +26,7 @@ func TestMulticastJoinAndLeave(t *testing.T) {
defer conn.Close() defer conn.Close()
// try to join group // try to join group
mcast := IPv4(224, 0, 0, 251) mcast := IPv4(224, 0, 0, 254)
err = conn.JoinGroup(mcast) err = conn.JoinGroup(mcast)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
...@@ -50,6 +51,7 @@ func TestJoinFailureWithIPv6Address(t *testing.T) { ...@@ -50,6 +51,7 @@ func TestJoinFailureWithIPv6Address(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
defer conn.Close() defer conn.Close()
// try to join group // try to join group
mcast := ParseIP("ff02::1") mcast := ParseIP("ff02::1")
err = conn.JoinGroup(mcast) err = conn.JoinGroup(mcast)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment