From f77185f9e8e2090486897c2240e5f6b945e3f234 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Fri, 8 Sep 2023 21:41:41 -0600 Subject: [PATCH] Fix "even if IPv4 comes first" test to have IPv4 first Signed-off-by: Sam Edwards --- pkg/cri/sbserver/sandbox_run_test.go | 2 +- pkg/cri/server/sandbox_run_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cri/sbserver/sandbox_run_test.go b/pkg/cri/sbserver/sandbox_run_test.go index a51810925..238ef031f 100644 --- a/pkg/cri/sbserver/sandbox_run_test.go +++ b/pkg/cri/sbserver/sandbox_run_test.go @@ -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", diff --git a/pkg/cri/server/sandbox_run_test.go b/pkg/cri/server/sandbox_run_test.go index d8f494625..b1bc1ec13 100644 --- a/pkg/cri/server/sandbox_run_test.go +++ b/pkg/cri/server/sandbox_run_test.go @@ -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",