1
0
mirror of https://github.com/golang/go synced 2024-11-11 20:20:23 -07:00

net: fix Windows TestInterfaceHardwareAddrWithGetmac

TestInterfaceHardwareAddrWithGetmac was panicing when getmac returned
multiple network cards.

Change-Id: I6fefa5a4910bce805b4cd9c09f94bd56c9682b9e
Reviewed-on: https://go-review.googlesource.com/47190
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Egon Elbre 2017-06-29 13:58:28 +03:00 committed by Brad Fitzpatrick
parent 7e4d1a05e5
commit 6b8813ca45

View File

@ -592,7 +592,7 @@ func TestInterfaceHardwareAddrWithGetmac(t *testing.T) {
addr = strings.Replace(addr, "-", ":", -1)
cname := getValue("Connection Name")
want[cname] = addr
group = nil
group = make(map[string]string)
}
lines := bytes.Split(out, []byte{'\r', '\n'})
for _, line := range lines {