mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 20:39:36 +08:00
fix: resource group ut fixup (#32509)
issue: #30647 Signed-off-by: chyezh <chyezh@outlook.com>
This commit is contained in:
parent
72b054e0c3
commit
21a9de5c8e
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user