Fixed typo ipAssingned -> ipAssigned
Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
This commit is contained in:
parent
0060267a8b
commit
b9ad475f6a
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue