Commit 6ab49fbc authored by ChaiShushan's avatar ChaiShushan Committed by Dave Cheney

net: fix some test bug

Fixes #5785.

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/10587043
parent 38a77ff0
......@@ -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 {
......
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