diff --git a/internal/datanode/data_node_test.go b/internal/datanode/data_node_test.go index 02a60cc9ee..938b1cae3f 100644 --- a/internal/datanode/data_node_test.go +++ b/internal/datanode/data_node_test.go @@ -186,10 +186,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) - defer node.Stop() - vchanNameCh := make(chan string) node.clearSignal = vchanNameCh go node.BackGroundGC(vchanNameCh)