Replacing t.Fatal() with t.Fatalf()
Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
This commit is contained in:
parent
e8abb5ca89
commit
3ff181bb20
|
@ -27,7 +27,7 @@ func TestCreateBridgeWithMac(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, err := net.InterfaceByName(name); err == nil {
|
if _, err := net.InterfaceByName(name); err == nil {
|
||||||
t.Fatal("expected error getting interface because %s bridge was deleted", name)
|
t.Fatalf("expected error getting interface because %s bridge was deleted", name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ func TestCreateBridgeLink(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, err := net.InterfaceByName(name); err == nil {
|
if _, err := net.InterfaceByName(name); err == nil {
|
||||||
t.Fatal("expected error getting interface because %s bridge was deleted", name)
|
t.Fatalf("expected error getting interface because %s bridge was deleted", name)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue