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: grpc_server_test.go
    path of file: ./repos/marketstore/replication
    
    the code of the file until where you have to start completion: package replication_test

import (
	"testing"
	"time"

	"github.com/google/go-cmp/cmp"

	"github.com/alpacahq/marketstore/v4/proto"
	"github.com/alpacahq/marketstore/v4/replication"
	"git
    
func TestGRPCReplicationServer_GetWALStream_error(t *testing.T) {
	// --- given ---
	t.Parallel()
	replServer := replication.NewGRPCReplicationServer()
	testTGMessage := []byte{1, 2, 3}

	stream := &mock.ErrorWALStreamServer{}

	// --- when ---

	// start to listen, but Send function should return error and GetWALStream should return nil
	go func() {
		err := replServer.GetWALStream(nil, stream)
		if err != nil {
			t.Errorf("GetWALStream should return nil when Send failed")
		}
	}()
	time.Sleep(500 * time.Millisecond)

	// send a message to the channel
	replServer.SendReplicationMessage(testTGMessage)
	time.Sleep(100 * time.Millisecond)

	// --- then ---
	// assertion is done in the go func
}