Fix unittest start channel event but not close (#22662)

Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
pull/22745/head
aoiasd 2023-03-14 17:05:54 +08:00 committed by GitHub
parent 89618b7e12
commit 6959332b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -397,6 +397,7 @@ func TestWatchChannel(t *testing.T) {
)
node.eventManagerMap.Store(ch, m)
m.Run()
defer m.Close()
info = datapb.ChannelWatchInfo{
Vchan: &datapb.VchannelInfo{ChannelName: ch},
@ -433,6 +434,7 @@ func TestWatchChannel(t *testing.T) {
)
node.eventManagerMap.Store(ch, m)
m.Run()
defer m.Close()
e := &event{
eventType: putEventType,
version: 10000,