未验证 提交 3c9840d6 编写于 作者: C congqixia 提交者: GitHub

Fix some datanode instance not stopped in unit tests (#21385)

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 5d044c4f
......@@ -185,6 +185,7 @@ func TestDataNode(t *testing.T) {
t.Run("Test BackGroundGC", func(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
node := newIDLEDataNodeMock(ctx, schemapb.DataType_Int64)
defer node.Stop()
vchanNameCh := make(chan string)
node.clearSignal = vchanNameCh
......
......@@ -45,6 +45,7 @@ func TestFlowGraphManager(t *testing.T) {
defer etcdCli.Close()
node := newIDLEDataNodeMock(ctx, schemapb.DataType_Int64)
defer node.Stop()
node.SetEtcdClient(etcdCli)
err = node.Init()
require.Nil(t, err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册