diff --git a/client/http/types_test.go b/client/http/types_test.go index 74482e29c3c..1dedbdc7d3b 100644 --- a/client/http/types_test.go +++ b/client/http/types_test.go @@ -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) {