Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Aug 10, 2023
1 parent 931626c commit d30aa24
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/integrations/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import (
"github.com/tikv/pd/pkg/core"
"github.com/tikv/pd/pkg/errs"
"github.com/tikv/pd/pkg/mock/mockid"
sc "github.com/tikv/pd/pkg/schedule/config"
"github.com/tikv/pd/pkg/storage/endpoint"
"github.com/tikv/pd/pkg/tso"
"github.com/tikv/pd/pkg/utils/assertutil"
Expand Down Expand Up @@ -805,7 +804,7 @@ func (suite *clientTestSuite) SetupSuite() {
}))
suite.grpcSvr.GetRaftCluster().GetBasicCluster().PutStore(newStore)
}
cluster.GetStoreConfig().(*sc.StoreConfig).SetRegionBucketEnabled(true)
cluster.GetOpts().(*config.PersistOptions).SetRegionBucketEnabled(true)
}

func (suite *clientTestSuite) TearDownSuite() {
Expand Down Expand Up @@ -894,7 +893,7 @@ func (suite *clientTestSuite) TestGetRegion() {
}
return r.Buckets != nil
})
suite.srv.GetRaftCluster().GetStoreConfig().(*sc.StoreConfig).SetRegionBucketEnabled(false)
suite.srv.GetRaftCluster().GetOpts().(*config.PersistOptions).SetRegionBucketEnabled(false)

testutil.Eventually(re, func() bool {
r, err := suite.client.GetRegion(context.Background(), []byte("a"), pd.WithBuckets())
Expand All @@ -904,7 +903,7 @@ func (suite *clientTestSuite) TestGetRegion() {
}
return r.Buckets == nil
})
suite.srv.GetRaftCluster().GetStoreConfig().(*sc.StoreConfig).SetRegionBucketEnabled(true)
suite.srv.GetRaftCluster().GetOpts().(*config.PersistOptions).SetRegionBucketEnabled(true)

suite.NoError(failpoint.Enable("github.com/tikv/pd/server/grpcClientClosed", `return(true)`))
suite.NoError(failpoint.Enable("github.com/tikv/pd/server/useForwardRequest", `return(true)`))
Expand Down

0 comments on commit d30aa24

Please sign in to comment.