fix: resource group ut fixup (#32509)

issue: #30647

Signed-off-by: chyezh <chyezh@outlook.com>
This commit is contained in:
chyezh 2024-04-23 10:01:23 +08:00 committed by GitHub
parent 72b054e0c3
commit 21a9de5c8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,7 +150,13 @@ func (suite *ResourceObserverSuite) TestCheckNodesInReplica() {
suite.meta.ResourceManager.HandleNodeDown(100)
suite.meta.ResourceManager.HandleNodeDown(101)
suite.Error(suite.meta.ResourceManager.MeetRequirement("rg"))
rg := suite.meta.ResourceManager.GetResourceGroup("rg")
suite.NotNil(rg)
suite.False(rg.ContainNode(100))
suite.False(rg.ContainNode(101))
suite.True(rg.ContainNode(102))
suite.True(rg.ContainNode(103))
}
func (suite *ResourceObserverSuite) TestRecoverResourceGroupFailed() {