Fix "even if IPv4 comes first" test to have IPv4 first

Signed-off-by: Sam Edwards <CFSworks@gmail.com>
This commit is contained in:
Sam Edwards 2023-09-08 21:41:41 -06:00
parent 88a849626f
commit f77185f9e8
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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",