Commit 8b8b54ad authored by Dave Cheney's avatar Dave Cheney Committed by Andrew Gerrand

net: disable multicast tests by default.

Fixes #1649.

R=rsc, adg
CC=golang-dev
https://golang.org/cl/4343056
parent dd442329
......@@ -5,14 +5,21 @@
package net
import (
"flag"
"runtime"
"testing"
)
var multicast = flag.Bool("multicast", false, "enable multicast tests")
func TestMulticastJoinAndLeave(t *testing.T) {
if runtime.GOOS == "windows" {
return
}
if !*multicast {
t.Logf("test disabled; use --multicast to enable")
return
}
addr := &UDPAddr{
IP: IPv4zero,
......@@ -40,6 +47,10 @@ func TestMulticastJoinAndLeave(t *testing.T) {
}
func TestJoinFailureWithIPv6Address(t *testing.T) {
if !*multicast {
t.Logf("test disabled; use --multicast to enable")
return
}
addr := &UDPAddr{
IP: IPv4zero,
Port: 0,
......
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