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: worker_test.go
    path of file: ./repos/gaia/workers/server
    
    the code of the file until where you have to start completion: package server

import (
	"bytes"
	"context"
	"fmt"
	"io"
	"io/ioutil"
	"os"
	"path/filepath"
	"testing"

	"github.com/gaia-pipeline/gaia"
	"github.com/gaia-pipeline/gaia/services"
	"github.com/gaia-pipeline/gaia/store"
	"github.com/gaia-pipeline/gaia/sto
    
func TestStreamBinary(t *testing.T) {
	tmp, err := ioutil.TempDir("", "TestStreamBinary")
	if err != nil {
		t.Fatal(err)
	}
	defer os.RemoveAll(tmp)
	gaia.Cfg = &gaia.Config{
		Mode: gaia.ModeServer,
	}
	gaia.Cfg.Logger = hclog.New(&hclog.LoggerOptions{
		Level: hclog.Trace,
		Name:  "Gaia",
	})
	services.MockMemDBService(&mockMemDBService{})

	// Create test pipeline file
	testPipeline := filepath.Join(tmp, "my-pipeline_golang")
	if err := ioutil.WriteFile(testPipeline, []byte("test data"), 0777); err != nil {
		t.Fatal(err)
	}

	// Init global active pipelines slice
	pipeline.GlobalActivePipelines = pipeline.NewActivePipelines()
	pipeline.GlobalActivePipelines.Append(gaia.Pipeline{ID: 1, SHA256Sum: []byte("testbytes"), Type: gaia.PTypeGolang, ExecPath: testPipeline})

	// Mock gRPC server
	mw := mockStreamBinaryServ{}

	// Run StreamBinary
	ws := WorkServer{}
	if err := ws.StreamBinary(&pb.PipelineRun{Id: 1, PipelineId: 1}, mw); err != nil {
		t.Fatal(err)
	}
}