mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 10:59:32 +08:00
Fix data race (#22171)
Signed-off-by: lixinguo <xinguo.li@zilliz.com> Co-authored-by: lixinguo <xinguo.li@zilliz.com>
This commit is contained in:
parent
68f146d5df
commit
e20d79a8a1
@ -186,10 +186,6 @@ func TestDataNode(t *testing.T) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
t.Run("Test BackGroundGC", func(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)
|
vchanNameCh := make(chan string)
|
||||||
node.clearSignal = vchanNameCh
|
node.clearSignal = vchanNameCh
|
||||||
go node.BackGroundGC(vchanNameCh)
|
go node.BackGroundGC(vchanNameCh)
|
||||||
|
Loading…
Reference in New Issue
Block a user