1
0
mirror of https://github.com/golang/go synced 2024-09-25 11:10:13 -06:00

net: fix some test bug

Fixes #5785.

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/10587043
This commit is contained in:
ChaiShushan 2013-08-05 11:59:59 +10:00 committed by Dave Cheney
parent 38a77ff03f
commit 6ab49fbc6e

View File

@ -141,6 +141,7 @@ func TestUnixAutobind(t *testing.T) {
func TestUnixConnLocalAndRemoteNames(t *testing.T) {
for _, laddr := range []string{"", testUnixAddr()} {
laddr := laddr
taddr := testUnixAddr()
ta, err := ResolveUnixAddr("unix", taddr)
if err != nil {
@ -196,6 +197,7 @@ func TestUnixConnLocalAndRemoteNames(t *testing.T) {
func TestUnixgramConnLocalAndRemoteNames(t *testing.T) {
for _, laddr := range []string{"", testUnixAddr()} {
laddr := laddr
taddr := testUnixAddr()
ta, err := ResolveUnixAddr("unixgram", taddr)
if err != nil {