mcs: fix rule sync when meet "no rule left" and concurrency #7481
81.37% of diff hit (target 74.65%)
View this Pull Request on Codecov
81.37% of diff hit (target 74.65%)
Annotations
Check warning on line 196 in pkg/mcs/scheduling/server/config/watcher.go
codecov / codecov/patch
pkg/mcs/scheduling/server/config/watcher.go#L196
Added line #L196 was not covered by tests
Check warning on line 79 in pkg/mcs/scheduling/server/meta/watcher.go
codecov / codecov/patch
pkg/mcs/scheduling/server/meta/watcher.go#L79
Added line #L79 was not covered by tests
Check warning on line 131 in pkg/mcs/scheduling/server/rule/watcher.go
codecov / codecov/patch
pkg/mcs/scheduling/server/rule/watcher.go#L131
Added line #L131 was not covered by tests
Check warning on line 143 in pkg/mcs/scheduling/server/rule/watcher.go
codecov / codecov/patch
pkg/mcs/scheduling/server/rule/watcher.go#L143
Added line #L143 was not covered by tests
Check warning on line 152 in pkg/mcs/scheduling/server/rule/watcher.go
codecov / codecov/patch
pkg/mcs/scheduling/server/rule/watcher.go#L150-L152
Added lines #L150 - L152 were not covered by tests
Check warning on line 167 in pkg/mcs/scheduling/server/rule/watcher.go
codecov / codecov/patch
pkg/mcs/scheduling/server/rule/watcher.go#L167
Added line #L167 was not covered by tests
Check warning on line 171 in pkg/mcs/scheduling/server/rule/watcher.go
codecov / codecov/patch
pkg/mcs/scheduling/server/rule/watcher.go#L171
Added line #L171 was not covered by tests
Check warning on line 184 in pkg/mcs/scheduling/server/rule/watcher.go
codecov / codecov/patch
pkg/mcs/scheduling/server/rule/watcher.go#L182-L184
Added lines #L182 - L184 were not covered by tests
Check warning on line 262 in pkg/mcs/scheduling/server/rule/watcher.go
codecov / codecov/patch
pkg/mcs/scheduling/server/rule/watcher.go#L262
Added line #L262 was not covered by tests