mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix and re-enable TestDockerNetworkMacvlan/MultiSubnet
The linter marked an issue because testMacvlanMultiSubnet was not used. Re-enabling the test showed that there was a typo in the assert, causing the test to fail: ``` --- FAIL: TestDockerNetworkMacvlan/MultiSubnet (4.74s) macvlan_test.go:243: assertion failed: 2001:db8:abc4::254 (c3.NetworkSettings.Networks["dualstackbridge"].IPv6Gateway string) != 2001:db8.abc4::254 (string) ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
6aadd436a9
commit
4a37dcab48
1 changed files with 4 additions and 1 deletions
|
@ -59,6 +59,9 @@ func TestDockerNetworkMacvlan(t *testing.T) {
|
|||
}, {
|
||||
name: "InternalMode",
|
||||
test: testMacvlanInternalMode,
|
||||
}, {
|
||||
name: "MultiSubnet",
|
||||
test: testMacvlanMultiSubnet,
|
||||
}, {
|
||||
name: "Addressing",
|
||||
test: testMacvlanAddressing,
|
||||
|
@ -237,7 +240,7 @@ func testMacvlanMultiSubnet(client client.APIClient) func(*testing.T) {
|
|||
// Inspect the v4 gateway to ensure the proper explicitly assigned default GW was assigned
|
||||
assert.Equal(t, c3.NetworkSettings.Networks["dualstackbridge"].Gateway, "172.28.102.254")
|
||||
// Inspect the v6 gateway to ensure the proper explicitly assigned default GW was assigned
|
||||
assert.Equal(t, c3.NetworkSettings.Networks["dualstackbridge"].IPv6Gateway, "2001:db8.abc4::254")
|
||||
assert.Equal(t, c3.NetworkSettings.Networks["dualstackbridge"].IPv6Gateway, "2001:db8:abc4::254")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue