Skip to content

Commit

Permalink
client/http: fix TestMergeRegionsInfo to make it stable (tikv#7502)
Browse files Browse the repository at this point in the history
ref tikv#7300

Fix `TestMergeRegionsInfo` to make it stable.

Signed-off-by: JmPotato <ghzpotato@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
JmPotato and ti-chi-bot[bot] committed Dec 7, 2023
1 parent 6080557 commit 995fcef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/http/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestMergeRegionsInfo(t *testing.T) {
regionsInfo := regionsInfo1.Merge(regionsInfo2)
re.Equal(int64(2), regionsInfo.Count)
re.Equal(2, len(regionsInfo.Regions))
re.Equal(append(regionsInfo1.Regions, regionsInfo2.Regions...), regionsInfo.Regions)
re.Subset(regionsInfo.Regions, append(regionsInfo1.Regions, regionsInfo2.Regions...))
}

func TestRuleStartEndKey(t *testing.T) {
Expand Down

0 comments on commit 995fcef

Please sign in to comment.