You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: synchronize_test.go
    path of file: ./repos/frostdb/query/physicalplan
    
    the code of the file until where you have to start completion: package physicalplan

import (
	"context"
	"sync"
	"testing"

	"github.com/apache/arrow/go/v15/arrow"
	"github.com/apache/arrow/go/v15/arrow/array"
	"github.com/apache/arrow/go/v15/arrow/memory"
	"github.com/stretchr/testify/require"
)

func TestSynchronize(t *testing.T) {
	concurrency := 4
	plans := make([]PhysicalPlan, 
    
func (m *mockTableScan) Execute(ctx context.Context, pool memory.Allocator) error {
	records := make(chan arrow.Record, len(m.plans))

	var wg sync.WaitGroup

	for _, plan := range m.plans {
		wg.Add(1)
		go func(plan PhysicalPlan) {
			for r := range records {
				_ = plan.Callback(ctx, r)
			}
			wg.Done()
		}(plan)
	}

	schema := arrow.NewSchema([]arrow.Field{{Name: "value", Type: &arrow.Int64Type{}}}, nil)
	for i := int64(0); i < int64(len(m.plans)*10); i++ {
		b := array.NewRecordBuilder(pool, schema)
		b.Field(0).(*array.Int64Builder).AppendValues([]int64{i}, nil)
		records <- b.NewRecord()
	}

	close(records)
	wg.Wait()

	for _, plan := range m.plans {
		if err := plan.Finish(ctx); err != nil {
			return err
		}
	}

	return nil
}