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: fanout_test.go
    path of file: ./repos/eagle/pkg/sync/pipeline/fanout
    
    the code of the file until where you have to start completion: package fanout

import (
	"context"
	"testing"
	"time"
)

func TestFanout_Do(t *tes
    
func TestFanout_Close(t *testing.T) {
	ca := New("cache", Worker(1), Buffer(1024))
	ca.Close()
	err := ca.Do(context.Background(), func(c context.Context) {})
	if err == nil {
		t.Fatal("expect get err")
	}
}