diff --git a/tests/integrations/client/client_test.go b/tests/integrations/client/client_test.go index d0f5ad87ba95..198e371d2a72 100644 --- a/tests/integrations/client/client_test.go +++ b/tests/integrations/client/client_test.go @@ -1294,6 +1294,7 @@ func (suite *clientTestSuite) TestGetRegion() { if r == nil { return false } + region.Leader = peers[0] return reflect.DeepEqual(region, r.Meta) && reflect.DeepEqual(peers[0], r.Leader) && r.Buckets == nil @@ -1375,6 +1376,7 @@ func (suite *clientTestSuite) TestGetPrevRegion() { r, err := suite.client.GetPrevRegion(context.Background(), []byte{byte(i)}) re.NoError(err) if i > 0 && i < regionLen { + regions[i-1].Leader = peers[0] return reflect.DeepEqual(peers[0], r.Leader) && reflect.DeepEqual(regions[i-1], r.Meta) } @@ -1487,6 +1489,7 @@ func (suite *clientTestSuite) TestGetRegionByID() { if r == nil { return false } + region.Leader = peers[0] return reflect.DeepEqual(region, r.Meta) && reflect.DeepEqual(peers[0], r.Leader) })