tikv / pd

Placement driver for TiKV
Apache License 2.0
1.06k stars 724 forks source link

test: add ut to test the input when creating evict-leader scheduler #8768

Closed okJiang closed 3 weeks ago

okJiang commented 3 weeks ago

What problem does this PR solve?

Issue Number: Ref #4399

What is changed and how does it work?

Check List

Tests

Release note

None.
okJiang commented 3 weeks ago

/retest

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 75.64%. Comparing base (b19cec5) to head (fc5d03e). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #8768 +/- ## ========================================== - Coverage 75.75% 75.64% -0.12% ========================================== Files 461 461 Lines 72293 72298 +5 ========================================== - Hits 54767 54687 -80 - Misses 14028 14112 +84 - Partials 3498 3499 +1 ``` | [Flag](https://app.codecov.io/gh/tikv/pd/pull/8768/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tikv) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/tikv/pd/pull/8768/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tikv) | `75.64% <100.00%> (-0.12%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tikv#carryforward-flags-in-the-pull-request-comment) to find out more.
okJiang commented 3 weeks ago

/retest

okJiang commented 3 weeks ago

/cc @lhy1024

ti-chi-bot[bot] commented 3 weeks ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nolouch, rleungx

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/tikv/pd/blob/master/OWNERS)~~ [nolouch,rleungx] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
ti-chi-bot[bot] commented 3 weeks ago

[LGTM Timeline notifier]

Timeline: