mirror of https://github.com/milvus-io/milvus.git
Fix some datanode instance not stopped in unit tests (#21385)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/21389/head
parent
5d044c4f29
commit
3c9840d6d3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue