Skip to content

Commit d4ca112

Browse files
committed
remove moar stuff
1 parent a864da2 commit d4ca112

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

cloud/linode/loadbalancers_test.go

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"os"
1414
"reflect"
1515
"regexp"
16-
"slices"
1716
"strconv"
1817
"strings"
1918
"testing"
@@ -4571,28 +4570,6 @@ func testMakeLoadBalancerStatusEnvVar(t *testing.T, client *linodego.Client, _ *
45714570
os.Unsetenv("LINODE_HOSTNAME_ONLY_INGRESS")
45724571
}
45734572

4574-
func getLatestNbNodesForService(t *testing.T, client *linodego.Client, svc *v1.Service, lb *loadbalancers) []linodego.NodeBalancerNode {
4575-
t.Helper()
4576-
nb, err := lb.getNodeBalancerByStatus(t.Context(), svc)
4577-
if err != nil {
4578-
t.Fatalf("expected no error got %v", err)
4579-
}
4580-
cfgs, errConfigs := client.ListNodeBalancerConfigs(t.Context(), nb.ID, nil)
4581-
if errConfigs != nil {
4582-
t.Fatalf("expected no error getting configs, got %v", errConfigs)
4583-
}
4584-
slices.SortFunc(cfgs, func(a, b linodego.NodeBalancerConfig) int {
4585-
return a.ID - b.ID
4586-
})
4587-
4588-
// Verify nodes were created correctly (only non-excluded nodes)
4589-
nodeBalancerNodes, err := client.ListNodeBalancerNodes(t.Context(), nb.ID, cfgs[0].ID, nil)
4590-
if err != nil {
4591-
t.Fatalf("expected no error got %v", err)
4592-
}
4593-
return nodeBalancerNodes
4594-
}
4595-
45964573
func testCleanupDoesntCall(t *testing.T, client *linodego.Client, fakeAPI *fakeAPI) {
45974574
t.Helper()
45984575

0 commit comments

Comments
 (0)