fix: enable error-nil and nil-compare rules from testifylint in module k8s.io/endpointslice

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2024-09-27 07:28:00 +02:00
parent a8c955ab42
commit 3e29e6e9d3

View File

@@ -580,7 +580,7 @@ func TestReconcile1EndpointSlice(t *testing.T) {
if tc.existing != nil {
existingSlices = append(existingSlices, tc.existing)
_, createErr := client.DiscoveryV1().EndpointSlices(namespace).Create(context.TODO(), tc.existing, metav1.CreateOptions{})
assert.Nil(t, createErr, "Expected no error creating endpoint slice")
assert.NoError(t, createErr, "Expected no error creating endpoint slice")
}
numActionsBefore := len(client.Actions())