net: move test flags into main_test.go

Also updates the comments on test flags.

Change-Id: I8dbd90270e08728ab309ab88a3030e0f8e547175
Reviewed-on: https://go-review.googlesource.com/8394
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Mikio Hara 2015-04-02 12:15:03 +09:00
parent bd09279c3f
commit 52c84c34fd
5 changed files with 21 additions and 19 deletions

View file

@ -6,7 +6,6 @@ package net
import (
"bytes"
"flag"
"fmt"
"io"
"os"
@ -77,8 +76,6 @@ func TestSelfConnect(t *testing.T) {
}
}
var runErrorTest = flag.Bool("run_error_test", false, "let TestDialError check for dns errors")
type DialErrorTest struct {
Net string
Raddr string