mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2026-01-07 15:51:45 +00:00
fix: enable nil-compare and error-nil rules from testifylint in module k8s.io/kubernetes
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -42,10 +42,10 @@ func TestLocalEndpoint(t *testing.T) {
|
||||
for _, test := range tests {
|
||||
fullPath, err := LocalEndpoint(test.path, test.file)
|
||||
if test.expectError {
|
||||
assert.NotNil(t, err, "expected error")
|
||||
assert.Error(t, err, "expected error")
|
||||
continue
|
||||
}
|
||||
assert.Nil(t, err, "expected no error")
|
||||
assert.NoError(t, err, "expected no error")
|
||||
assert.Equal(t, test.expectedFullPath, fullPath)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user