Skip to content

Commit 57a9d76

Browse files
author
Jim Ryan
committed
lint and change field name
1 parent d996555 commit 57a9d76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/apis/configuration/validation/globalconfiguration_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,15 @@ func TestValidateListeners_PassesOnValidIPListeners(t *testing.T) {
237237
{
238238
name: "UDP and HTTP Listeners with Same Port",
239239
listeners: []conf_v1.Listener{
240-
{Name: "listener-1", IPv4: "127.0.0.1", Port: 8080, Protocol: "UDP"},
241-
{Name: "listener-2", IPv4: "127.0.0.1", Port: 8080, Protocol: "HTTP"},
240+
{Name: "listener-1", IPv4IP: "127.0.0.1", Port: 8080, Protocol: "UDP"},
241+
{Name: "listener-2", IPv4IP: "127.0.0.1", Port: 8080, Protocol: "HTTP"},
242242
},
243243
},
244244
{
245245
name: "UDP and TCP Listeners with Same Port",
246246
listeners: []conf_v1.Listener{
247-
{Name: "listener-1", IPv4: "127.0.0.1", Port: 8080, Protocol: "UDP"},
248-
{Name: "listener-2", IPv4: "127.0.0.1", Port: 8080, Protocol: "TCP"},
247+
{Name: "listener-1", IPv4IP: "127.0.0.1", Port: 8080, Protocol: "UDP"},
248+
{Name: "listener-2", IPv4IP: "127.0.0.1", Port: 8080, Protocol: "TCP"},
249249
},
250250
},
251251
}

0 commit comments

Comments
 (0)