leadership: check leadership key before exit watch loop #6979
83.01% of diff hit (target 74.51%)
View this Pull Request on Codecov
83.01% of diff hit (target 74.51%)
Annotations
Check warning on line 276 in pkg/election/leadership.go
codecov / codecov/patch
pkg/election/leadership.go#L275-L276
Added lines #L275 - L276 were not covered by tests
Check warning on line 318 in pkg/election/leadership.go
codecov / codecov/patch
pkg/election/leadership.go#L317-L318
Added lines #L317 - L318 were not covered by tests
Check warning on line 331 in pkg/election/leadership.go
codecov / codecov/patch
pkg/election/leadership.go#L328-L331
Added lines #L328 - L331 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 759 in pkg/utils/etcdutil/etcdutil.go
codecov / codecov/patch
pkg/utils/etcdutil/etcdutil.go#L759
Added line #L759 was not covered by tests
Check warning on line 763 in pkg/utils/etcdutil/etcdutil.go
codecov / codecov/patch
pkg/utils/etcdutil/etcdutil.go#L761-L763
Added lines #L761 - L763 were not covered by tests