mirror of
https://github.com/rancher/os.git
synced 2025-09-01 06:40:31 +00:00
cloudinit tests pass :)
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
@@ -328,11 +328,11 @@ func TestParseInterfaceStanzaStaticPostUp(t *testing.T) {
|
||||
expect: []route{
|
||||
{
|
||||
destination: func() net.IPNet {
|
||||
if _, net, err := net.ParseCIDR("192.168.1.0/24"); err == nil {
|
||||
return *net
|
||||
} else {
|
||||
_, net, err := net.ParseCIDR("192.168.1.0/24")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return *net
|
||||
}(),
|
||||
gateway: net.IPv4(192, 168, 1, 1),
|
||||
},
|
||||
|
Reference in New Issue
Block a user