Skip to content

Commit 029af67

Browse files
committed
lint fix
1 parent 6edef80 commit 029af67

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

cloud/services/loadbalancers_test.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/go-logr/logr"
99
"github.com/linode/linodego"
1010
"github.com/stretchr/testify/assert"
11+
"github.com/stretchr/testify/require"
1112
"go.uber.org/mock/gomock"
1213
corev1 "k8s.io/api/core/v1"
1314
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -21,10 +22,6 @@ import (
2122
"github.com/linode/cluster-api-provider-linode/util"
2223
)
2324

24-
const (
25-
// ... existing code ...
26-
)
27-
2825
func TestEnsureNodeBalancer(t *testing.T) {
2926
t.Parallel()
3027
tests := []struct {
@@ -647,9 +644,9 @@ func TestGetSubnetID(t *testing.T) {
647644

648645
got, err := getSubnetID(context.Background(), testcase.clusterScope, logr.Discard())
649646
if testcase.expectedError != "" {
650-
assert.ErrorContains(t, err, testcase.expectedError)
647+
require.ErrorContains(t, err, testcase.expectedError)
651648
} else {
652-
assert.NoError(t, err)
649+
require.NoError(t, err)
653650
assert.Equal(t, testcase.expectedID, got)
654651
}
655652
})
@@ -890,9 +887,9 @@ func TestProcessAndCreateNodeBalancerNodes(t *testing.T) {
890887
)
891888

892889
if testcase.expectedError != "" {
893-
assert.ErrorContains(t, err, testcase.expectedError)
890+
require.ErrorContains(t, err, testcase.expectedError)
894891
} else {
895-
assert.NoError(t, err)
892+
require.NoError(t, err)
896893
}
897894
})
898895
}

0 commit comments

Comments
 (0)