mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +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 {
|
if tc.existing != nil {
|
||||||
existingSlices = append(existingSlices, tc.existing)
|
existingSlices = append(existingSlices, tc.existing)
|
||||||
_, createErr := client.DiscoveryV1().EndpointSlices(namespace).Create(context.TODO(), tc.existing, metav1.CreateOptions{})
|
_, 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())
|
numActionsBefore := len(client.Actions())
|
||||||
|
Reference in New Issue
Block a user