Skip to content

Commit

Permalink
pass ut
Browse files Browse the repository at this point in the history
Signed-off-by: bufferflies <1045931706@qq.com>
  • Loading branch information
bufferflies committed Mar 9, 2022
1 parent 15a39ef commit 94751cb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions server/cluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ func (s *testClusterInfoSuite) TestRegionHeartbeatHotStat(c *C) {
}

func (s *testClusterInfoSuite) TestBucketHeartbeat(c *C) {

_, opt, err := newTestScheduleConfig()
c.Assert(err, IsNil)
cluster := newTestRaftCluster(s.ctx, mockid.NewIDAllocator(), opt, storage.NewStorageWithMemoryBackend(), core.NewBasicCluster())
Expand All @@ -444,7 +443,7 @@ func (s *testClusterInfoSuite) TestBucketHeartbeat(c *C) {

// case2: bucket can be processed after the region update.
stores := newTestStores(3, "2.0.0")
n, np := uint64(1), uint64(3)
n, np := uint64(1), uint64(1)
regions := newTestRegions(n, np)
for _, store := range stores {
c.Assert(cluster.putStoreLocked(store), IsNil)
Expand Down
1 change: 0 additions & 1 deletion server/core/region.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ func (r *RegionInfo) Inherit(origin *RegionInfo) {
if r.buckets == nil {
r.buckets = origin.buckets
}

}

// Clone returns a copy of current regionInfo.
Expand Down
1 change: 0 additions & 1 deletion server/core/region_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ func (s *testRegionInfoSuite) TestInherit(c *C) {
} else {
c.Assert(r.GetBuckets(), Not(DeepEquals), d.originBuckets)
}

}
}

Expand Down

0 comments on commit 94751cb

Please sign in to comment.