mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +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
|
||||
lec.Lock = lock
|
||||
_, 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user