Skip to content

Commit 87784a8

Browse files
authored
Update test case with new selector syntax
1 parent 06df5da commit 87784a8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/tester/tester_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,9 @@ func workflowTimerCancellation(ctx workflow.Context) (time.Time, error) {
212212
t := workflow.ScheduleTimer(tctx, 30*time.Second)
213213
cancel()
214214

215-
s := workflow.NewSelector()
216-
s.AddFuture(t, func(ctx workflow.Context, t workflow.Future) {
215+
workflow.Select(ctx, workflow.Await(t, func(ctx workflow.Context, t workflow.Future) {
217216
t.Get(ctx, nil)
218-
})
219-
s.Select(ctx)
217+
}))
220218

221219
return workflow.Now(ctx), nil
222220
}

0 commit comments

Comments
 (0)