proxier/ipvs: unit tests should specify Service ports

Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
This commit is contained in:
Andrew Sy Kim 2021-04-29 16:17:35 -04:00
parent d82d851d89
commit cf9ccf5a8e

View File

@ -4684,6 +4684,7 @@ func Test_EndpointSliceReadyAndTerminatingLocal(t *testing.T) {
Ports: []v1.ServicePort{ Ports: []v1.ServicePort{
{ {
Name: "", Name: "",
Port: 80,
TargetPort: intstr.FromInt(80), TargetPort: intstr.FromInt(80),
Protocol: v1.ProtocolTCP, Protocol: v1.ProtocolTCP,
}, },
@ -4857,6 +4858,7 @@ func Test_EndpointSliceOnlyReadyAndTerminatingLocal(t *testing.T) {
Ports: []v1.ServicePort{ Ports: []v1.ServicePort{
{ {
Name: "", Name: "",
Port: 80,
TargetPort: intstr.FromInt(80), TargetPort: intstr.FromInt(80),
Protocol: v1.ProtocolTCP, Protocol: v1.ProtocolTCP,
}, },