Fix data race (#22444)

Signed-off-by: lixinguo <xinguo.li@zilliz.com>
pull/22464/head
smellthemoon 2023-02-28 11:01:47 +08:00 committed by GitHub
parent 91d251ab48
commit f36310abfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -628,9 +628,6 @@ 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)
vchanNameCh := make(chan string)
node.clearSignal = vchanNameCh
go node.BackGroundGC(vchanNameCh)