mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-25 14:41:53 +00:00
fix: enable error-is-as rule from testifylint in module k8s.io/client-go
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> Kubernetes-commit: a28c2b6bf8657889c18b683dd42044559a96c304
This commit is contained in:
parent
dfbc1c7fb1
commit
baf58c3d79
@ -937,7 +937,7 @@ func TestLeaderElectionConfigValidation(t *testing.T) {
|
|||||||
lock.LockConfig = resourceLockConfig
|
lock.LockConfig = resourceLockConfig
|
||||||
lec.Lock = lock
|
lec.Lock = lock
|
||||||
_, err = NewLeaderElector(lec)
|
_, err = NewLeaderElector(lec)
|
||||||
assert.Error(t, err, fmt.Errorf("Lock identity is empty"))
|
assert.EqualError(t, err, "Lock identity is empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
func assertEqualEvents(t *testing.T, expected []string, actual <-chan string) {
|
func assertEqualEvents(t *testing.T, expected []string, actual <-chan string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user