leadership: check leadership key before exit watch loop #6979
86.95% of diff hit (target 74.51%)
View this Pull Request on Codecov
86.95% of diff hit (target 74.51%)
Annotations
Check warning on line 270 in pkg/election/leadership.go
codecov / codecov/patch
pkg/election/leadership.go#L270
Added line #L270 was not covered by tests
Check warning on line 280 in pkg/election/leadership.go
codecov / codecov/patch
pkg/election/leadership.go#L279-L280
Added lines #L279 - L280 were not covered by tests
Check warning on line 732 in pkg/utils/etcdutil/etcdutil.go
codecov / codecov/patch
pkg/utils/etcdutil/etcdutil.go#L731-L732
Added lines #L731 - L732 were not covered by tests
Check warning on line 762 in pkg/utils/etcdutil/etcdutil.go
codecov / codecov/patch
pkg/utils/etcdutil/etcdutil.go#L761-L762
Added lines #L761 - L762 were not covered by tests