mirror of https://github.com/milvus-io/milvus.git
fix: Unstable `TestDataSyncService/TestStartStop` unit test (#29291)
fix #29290 Change EXPECT `NotifyCheckpointUpdated` call to `Maybe` expectation Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/29315/head
parent
bfca0a7926
commit
1ee016709d
|
@ -499,7 +499,7 @@ func (s *DataSyncServiceSuite) TestStartStop() {
|
|||
|
||||
s.wbManager.EXPECT().BufferData(insertChannelName, mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(nil)
|
||||
s.wbManager.EXPECT().GetCheckpoint(insertChannelName).Return(&msgpb.MsgPosition{Timestamp: msgTs}, true, nil)
|
||||
s.wbManager.EXPECT().NotifyCheckpointUpdated(insertChannelName, msgTs).Return()
|
||||
s.wbManager.EXPECT().NotifyCheckpointUpdated(insertChannelName, msgTs).Return().Maybe()
|
||||
|
||||
ch := make(chan struct{})
|
||||
|
||||
|
|
Loading…
Reference in New Issue