Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Aug 18, 2024
1 parent e879b00 commit e1fabcf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions go-runtime/schema/testdata/two/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ go 1.22.2

replace github.com/TBD54566975/ftl => ../../../..

require github.com/TBD54566975/ftl v0.150.3
require (
github.com/TBD54566975/ftl v0.150.3
github.com/jpillora/backoff v1.0.0
)

require (
connectrpc.com/connect v1.16.2 // indirect
Expand All @@ -26,7 +29,6 @@ require (
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgx/v5 v5.6.0 // indirect
github.com/jackc/puddle/v2 v2.2.1 // indirect
github.com/jpillora/backoff v1.0.0 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/multiformats/go-base36 v0.2.0 // indirect
Expand Down
4 changes: 4 additions & 0 deletions go-runtime/schema/testdata/two/two.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/TBD54566975/ftl/go-runtime/ftl"
lib "github.com/TBD54566975/ftl/go-runtime/schema/testdata"
libbackoff "github.com/jpillora/backoff"

"ftl/builtin"
)
Expand Down Expand Up @@ -103,6 +104,9 @@ type TransitiveAliasAlias = lib.NonFTLType

type TransitiveAlias lib.NonFTLType

//ftl:typealias
type BackoffAlias libbackoff.Backoff

func transitiveVerbCall(ctx context.Context, req Payload[string]) error {
_, err := ftl.Call(ctx, Two, req)
if err != nil {
Expand Down

0 comments on commit e1fabcf

Please sign in to comment.