Skip to content

Commit db061c7

Browse files
committed
get nodebalancers by status in test
1 parent 7b9c504 commit db061c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloud/linode/loadbalancers_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,9 @@ func testUpdateLoadBalancerAddAnnotation(t *testing.T, client *linodego.Client,
310310
t.Errorf("UpdateLoadBalancer returned an error while updated annotations: %s", err)
311311
}
312312

313-
nb, err := lb.getNodeBalancerByIPv4(context.TODO(), svc, lbStatus.Ingress[0].IP)
313+
nb, err := lb.getNodeBalancerByStatus(context.TODO(), svc)
314314
if err != nil {
315-
t.Errorf("unexpected error: %v", err)
315+
t.Fatalf("failed to get NodeBalancer via status: %s", err)
316316
}
317317

318318
if nb.ClientConnThrottle != 10 {

0 commit comments

Comments
 (0)