]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix some test bug
authorChaiShushan <chaishushan@gmail.com>
Mon, 5 Aug 2013 01:59:59 +0000 (11:59 +1000)
committerDave Cheney <dave@cheney.net>
Mon, 5 Aug 2013 01:59:59 +0000 (11:59 +1000)
Fixes #5785.

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/10587043

src/pkg/net/unix_test.go

index e1c3ff22158a6f1bf6d887ea7ae4e138ee9766e8..eae9f3f6d194b6bf52131ce312a3e862e72b9d13 100644 (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 {