Skip to content

[Testing] [feature]: mock response for chained invoke #436

Description

@dhegberg

Migration from aws/aws-durable-execution-sdk-python-testing#209


Discussed in aws/aws-durable-execution-sdk-python-testing#187

Originally posted by Squatch89 January 9, 2026
Hello,

I am spear heading the adoption of using durable functions on my team. Part of that process is writing tests. I have run into an issue testing my durable function. When I get to the step that calls context.invoke my test just spins forever. Am I supposed to be setting up a mock response for the invoke, or can I expect a result to come back from the code in my container. I have been unable to find an example for something like this in docs.
If there's any additional information you might need please let me know.

Thanks in advance!

Metadata

Metadata

Assignees

Labels

testing-sdkRelated to the AWS Durable Execution Testing SDK Library and LocalRunner

Fields

No fields configured for Feature.

Projects

Status
In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions