mirror of https://github.com/milvus-io/milvus.git
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
parent
4822b109bd
commit
b87f41128b
|
@ -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=========================")
|
||||
|
|
Loading…
Reference in New Issue