fix: ut failure (#32120)

issue: #30647

Signed-off-by: chyezh <chyezh@outlook.com>
This commit is contained in:
chyezh 2024-04-10 17:30:48 +08:00 committed by GitHub
parent 1b5554c8cb
commit a3d6110957
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,10 +134,10 @@ func (suite *LeaderViewManagerSuite) TestGetByFilter() {
// Test WithReplica
for i, collectionID := range suite.collections {
replica := newReplica(&querypb.Replica{
ID: int64(i),
CollectionID: collectionID,
Nodes: suite.nodes,
})
ID: int64(i),
CollectionID: collectionID,
Nodes: suite.nodes,
})
views := suite.mgr.GetByFilter(WithReplica2LeaderView(replica))
suite.Len(views, 2)
}