Commit 9dba6956 authored by Russ Cox's avatar Russ Cox

net: disable dns error test

some dns resolvers (opendns, for example)
are willing to make up results for any name.

R=agl, agl1
CC=golang-dev
https://golang.org/cl/152049
parent 484f46da
......@@ -5,10 +5,13 @@
package net
import (
"flag";
"regexp";
"testing";
)
var runErrorTest = flag.Bool("run_error_test", false, "let TestDialError check for dns errors")
type DialErrorTest struct {
Net string;
Laddr string;
......@@ -52,6 +55,10 @@ var dialErrorTests = []DialErrorTest{
}
func TestDialError(t *testing.T) {
if !*runErrorTest {
t.Logf("test disabled; use --run_error_test to enable");
return;
}
for i, tt := range dialErrorTests {
c, e := Dial(tt.Net, tt.Laddr, tt.Raddr);
if c != nil {
......
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