diff --git a/pkg/cloudprovider/providers/aws/aws_test.go b/pkg/cloudprovider/providers/aws/aws_test.go index aaf96e46bc..b220709321 100644 --- a/pkg/cloudprovider/providers/aws/aws_test.go +++ b/pkg/cloudprovider/providers/aws/aws_test.go @@ -1266,8 +1266,8 @@ func TestGetListener(t *testing.T) { annotations[ServiceAnnotationLoadBalancerCertificate] = test.certAnnotation } l, err := getListener(api.ServicePort{ - NodePort: int(test.instancePort), - Port: int(test.lbPort), + NodePort: int32(test.instancePort), + Port: int32(test.lbPort), Protocol: api.Protocol("tcp"), }, annotations) if test.expectError {