From 21a9de5c8ec6187b84d4a8ed67811a449b964584 Mon Sep 17 00:00:00 2001 From: chyezh Date: Tue, 23 Apr 2024 10:01:23 +0800 Subject: [PATCH] fix: resource group ut fixup (#32509) issue: #30647 Signed-off-by: chyezh --- internal/querycoordv2/observers/resource_observer_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/querycoordv2/observers/resource_observer_test.go b/internal/querycoordv2/observers/resource_observer_test.go index aee465cf78..9ea8edb3ff 100644 --- a/internal/querycoordv2/observers/resource_observer_test.go +++ b/internal/querycoordv2/observers/resource_observer_test.go @@ -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() {