Files
query-orchestration/test/integration/grpc/query_test.go
T
Michael McGuinness 4dd050e390 synctest
2024-12-24 17:13:48 +00:00

28 lines
402 B
Go

package grpc_test
import (
"context"
"testing"
"queryorchestration/api/grpc/spec"
"github.com/stretchr/testify/assert"
)
func TestQuery(t *testing.T) {
ctx := context.Background()
conn, cleanup := createDependencies(t, ctx)
defer cleanup()
client := spec.NewQueryServiceClient(conn)
id := "sample_id"
_, err := client.Get(ctx, &spec.IdMessage{
Id: id,
})
assert.NotNil(t, err)
}