Fix "even if IPv4 comes first" test to have IPv4 first
Signed-off-by: Sam Edwards <CFSworks@gmail.com>
This commit is contained in:
parent
88a849626f
commit
f77185f9e8
@ -145,7 +145,7 @@ func TestSelectPodIP(t *testing.T) {
|
||||
},
|
||||
{
|
||||
desc: "ipv6 should be picked even if ipv4 comes first",
|
||||
ips: []string{"2001:db8:85a3::8a2e:370:7334", "192.168.17.43"},
|
||||
ips: []string{"192.168.17.43", "2001:db8:85a3::8a2e:370:7334"},
|
||||
expectedIP: "2001:db8:85a3::8a2e:370:7334",
|
||||
expectedAdditionalIPs: []string{"192.168.17.43"},
|
||||
pref: "ipv6",
|
||||
|
@ -293,7 +293,7 @@ func TestSelectPodIP(t *testing.T) {
|
||||
},
|
||||
{
|
||||
desc: "ipv6 should be picked even if ipv4 comes first",
|
||||
ips: []string{"2001:db8:85a3::8a2e:370:7334", "192.168.17.43"},
|
||||
ips: []string{"192.168.17.43", "2001:db8:85a3::8a2e:370:7334"},
|
||||
expectedIP: "2001:db8:85a3::8a2e:370:7334",
|
||||
expectedAdditionalIPs: []string{"192.168.17.43"},
|
||||
pref: "ipv6",
|
||||
|
Loading…
Reference in New Issue
Block a user