mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user