Fix ut multi-remove the timer (#22021)

See also: #22019

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
XuanYang-cn 2023-02-07 14:15:54 +08:00 committed by GitHub
parent 004a8c25ca
commit a8db19fbdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,7 +190,6 @@ func TestChannelManager_StateTransfer(t *testing.T) {
nodeID: nodeID,
}
chManager.stateTimer.notifyTimeoutWatcher(e)
chManager.stateTimer.stopIfExist(e)
waitAndCheckState(t, metakv, datapb.ChannelWatchState_ToRelease, nodeID, cName, collectionID)
assert.Eventually(t, func() bool {