Skip to content

Commit

Permalink
Fix fake's routes
Browse files Browse the repository at this point in the history
  • Loading branch information
okokes-akamai committed Feb 23, 2023
1 parent fac5a57 commit 16c3e7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud/linode/loadbalancers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ func testUpdateLoadBalancerAddNodeBalancerID(t *testing.T, client *linodego.Clie
t.Errorf("LoadBalancer status mismatch: expected %v, got %v", expectedLBStatus, lbStatus)
}

if !fakeAPI.didRequestOccur(http.MethodDelete, fmt.Sprintf("/nodebalancers/%d", nodeBalancer.ID), "") {
if !fakeAPI.didRequestOccur(http.MethodDelete, fmt.Sprintf("/v4/nodebalancers/%d", nodeBalancer.ID), "") {
t.Errorf("expected old NodeBalancer to have been deleted")
}
}
Expand Down Expand Up @@ -1192,7 +1192,7 @@ func testEnsureLoadBalancerPreserveAnnotation(t *testing.T, client *linodego.Cli
svc.Status.LoadBalancer = *makeLoadBalancerStatus(svc, nb)
err = lb.EnsureLoadBalancerDeleted(context.TODO(), "linodelb", svc)

didDelete := fake.didRequestOccur(http.MethodDelete, fmt.Sprintf("/nodebalancers/%d", nb.ID), "")
didDelete := fake.didRequestOccur(http.MethodDelete, fmt.Sprintf("/v4/nodebalancers/%d", nb.ID), "")
if didDelete && !test.deleted {
t.Fatal("load balancer was unexpectedly deleted")
} else if !didDelete && test.deleted {
Expand Down

0 comments on commit 16c3e7d

Please sign in to comment.