Fixed typo ipAssingned -> ipAssigned

Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
This commit is contained in:
Milos Gajdos 2014-08-08 12:24:18 +01:00
parent 0060267a8b
commit b9ad475f6a
1 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import (
"testing"
)
func ipAssingned(iface *net.Interface, ip net.IP) bool {
func ipAssigned(iface *net.Interface, ip net.IP) bool {
addrs, _ := iface.Addrs()
for _, addr := range addrs {
@ -38,7 +38,7 @@ func TestAddDelNetworkIp(t *testing.T) {
t.Fatal(err)
}
if !ipAssingned(iface, ip) {
if !ipAssigned(iface, ip) {
t.Fatalf("Could not locate address '%s' in lo address list.", ip.String())
}
@ -46,7 +46,7 @@ func TestAddDelNetworkIp(t *testing.T) {
t.Fatal(err)
}
if ipAssingned(iface, ip) {
if ipAssigned(iface, ip) {
t.Fatal("Located address '%s' in lo address list after removal.", ip.String())
}
}