Skip to content

Commit

Permalink
test(UT): fixing getIngressWithHostname
Browse files Browse the repository at this point in the history
  • Loading branch information
garomonegro committed Jul 31, 2024
1 parent 6f3cc0d commit d449635
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/kube/structured/structured_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,8 @@ func getIngressWithHostname(t *testing.T, name, namespace, hostname string) runt
if !ok {
t.Errorf("'runtime.Object' could not be cast to '*appsv1.StatefulSet': %v", ingressInterface)
}
ingress.Status.LoadBalancer.Ingress = []corev1.LoadBalancerIngress{
{
Hostname: hostname,
},
ingress.Status.LoadBalancer.Ingress = []networkingv1.IngressLoadBalancerIngress{
{Hostname: hostname},
}
return ingress
}
Expand Down

0 comments on commit d449635

Please sign in to comment.