-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(timeout): add test for timeout #344
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
examples/timeout/main_e2e_test.go
Outdated
Description: "timeout", | ||
Steps: []*worker.WorkflowStep{ | ||
worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { | ||
time.Sleep(time.Second * 60) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it'd be better if we made sure the timeout signal propagates to the step over ctx.Done()
, rather than just sleeping
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I thought we already tested this in the cancellation but indeed it's not quite the same thing. I'll adapt.
Description
Fixes # (issue)
Type of change
What's Changed