From e1fabcf32f85cb53a46213cff139e2c1883a1a3a Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Mon, 19 Aug 2024 09:39:38 +1000 Subject: [PATCH] add test case --- go-runtime/schema/testdata/two/go.mod | 6 ++++-- go-runtime/schema/testdata/two/two.go | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/go-runtime/schema/testdata/two/go.mod b/go-runtime/schema/testdata/two/go.mod index de85649eab..8fa172d544 100644 --- a/go-runtime/schema/testdata/two/go.mod +++ b/go-runtime/schema/testdata/two/go.mod @@ -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 @@ -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 diff --git a/go-runtime/schema/testdata/two/two.go b/go-runtime/schema/testdata/two/two.go index 108b6b4a74..38c9efb17f 100644 --- a/go-runtime/schema/testdata/two/two.go +++ b/go-runtime/schema/testdata/two/two.go @@ -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" ) @@ -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 {