fix: [skip e2e] Make channel balance test accept flushing segments (#32229)

See also #30973

Make the case stable since the segment state may be flushing when suite
tries to check segment state.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/32049/head
congqixia 2024-04-15 11:27:18 +08:00 committed by GitHub
parent 4822b109bd
commit b87f41128b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ func (s *ChannelBalanceSuite) flushCollections(collections []string) {
return info.GetCollectionID() == collID
})
lo.ForEach(collSegs, func(info *datapb.SegmentInfo, _ int) {
s.Require().Equal(commonpb.SegmentState_Flushed, info.GetState())
s.Require().Contains([]commonpb.SegmentState{commonpb.SegmentState_Flushed, commonpb.SegmentState_Flushing}, info.GetState())
})
}
log.Info("=========================Data flush done=========================")