mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +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>
This commit is contained in:
parent
f3a54b68f9
commit
a28c2b6bf8
@ -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