From 57a9d768d8befb53d120ab9f2499cd884b139710 Mon Sep 17 00:00:00 2001 From: Jim Ryan Date: Thu, 12 Sep 2024 16:03:46 +0100 Subject: [PATCH] lint and change field name --- .../configuration/validation/globalconfiguration_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/apis/configuration/validation/globalconfiguration_test.go b/pkg/apis/configuration/validation/globalconfiguration_test.go index ceff693a86..014db33c3f 100644 --- a/pkg/apis/configuration/validation/globalconfiguration_test.go +++ b/pkg/apis/configuration/validation/globalconfiguration_test.go @@ -237,15 +237,15 @@ func TestValidateListeners_PassesOnValidIPListeners(t *testing.T) { { name: "UDP and HTTP Listeners with Same Port", listeners: []conf_v1.Listener{ - {Name: "listener-1", IPv4: "127.0.0.1", Port: 8080, Protocol: "UDP"}, - {Name: "listener-2", IPv4: "127.0.0.1", Port: 8080, Protocol: "HTTP"}, + {Name: "listener-1", IPv4IP: "127.0.0.1", Port: 8080, Protocol: "UDP"}, + {Name: "listener-2", IPv4IP: "127.0.0.1", Port: 8080, Protocol: "HTTP"}, }, }, { name: "UDP and TCP Listeners with Same Port", listeners: []conf_v1.Listener{ - {Name: "listener-1", IPv4: "127.0.0.1", Port: 8080, Protocol: "UDP"}, - {Name: "listener-2", IPv4: "127.0.0.1", Port: 8080, Protocol: "TCP"}, + {Name: "listener-1", IPv4IP: "127.0.0.1", Port: 8080, Protocol: "UDP"}, + {Name: "listener-2", IPv4IP: "127.0.0.1", Port: 8080, Protocol: "TCP"}, }, }, }