mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
test: fix up testing around host networks
This commit is contained in:
@@ -20,7 +20,7 @@ func TestCompose(t *testing.T) {
|
||||
{
|
||||
CIDR: "0.0.0.0/0",
|
||||
MBits: intToPtr(100),
|
||||
ReservedPorts: []Port{{"", 80, 0}, {"", 443, 0}},
|
||||
ReservedPorts: []Port{{"", 80, 0, ""}, {"", 443, 0, ""}},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -111,8 +111,8 @@ func TestCompose(t *testing.T) {
|
||||
CIDR: "0.0.0.0/0",
|
||||
MBits: intToPtr(100),
|
||||
ReservedPorts: []Port{
|
||||
{"", 80, 0},
|
||||
{"", 443, 0},
|
||||
{"", 80, 0, ""},
|
||||
{"", 443, 0, ""},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -269,7 +269,7 @@ func TestTask_Require(t *testing.T) {
|
||||
{
|
||||
CIDR: "0.0.0.0/0",
|
||||
MBits: intToPtr(100),
|
||||
ReservedPorts: []Port{{"", 80, 0}, {"", 443, 0}},
|
||||
ReservedPorts: []Port{{"", 80, 0, ""}, {"", 443, 0, ""}},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user