Skip to content

[Bug]: Testing library does not re-invoke correctly when updates occur in an active invocation #384

@anthonyting

Description

@anthonyting

Expected Behavior

Example:

  • Invocation 1 -> Checkpoint start callback
  • Testing library completes callback
  • Invocation 1 -> Invocation completes with no further checkpoints, so the update isn't received
  • Testing library re-invokes and execution completes in Invocation 2

Actual Behavior

Example:

  • Invocation 1 -> Checkpoint start callback
  • Testing library completes callback
  • Invocation 1 -> Invocation completes with no further checkpoints, so the update isn't received
  • Execution hangs and test times out

Steps to Reproduce

wait-for-callback-multiple-invocations test with skipTime disabled

SDK Version

1.0.0

Node.js Version

22.x

Is this a regression?

No

Last Working Version

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtesting-libraryIssue relates to the testing library

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions