Files
query-orchestration/test/integration/grpc/query_test.go
T
Michael McGuinness 1a5fab87c6 validate inputs
2024-12-23 16:49:53 +00:00

28 lines
394 B
Go

package grpc_test
import (
"context"
"testing"
"gotemplate/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)
}