Skip to content
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

[Bug] Unit test hangs with unit under test has runtime or compile time exception #428

Open
suityou01 opened this issue May 7, 2024 · 2 comments
Labels
Bug Something isn't working Question Further information is requested

Comments

@suityou01
Copy link

What are you really trying to do?

Unit test a workflow

Describe the bug

When unit testing a workflow, if the workflow under test encounters a runtime exception the unit test hangs.

Minimal Reproduction

See pull request here wolfy-j/temporal-simple-test-example#1

Environment/Versions

  • OS and processor: [e.g. M1 Mac, x86 Windows, Linux] - Ubuntu Linux 22.04
  • Temporal Version: [e.g. 1.14.0?] and/or SDK version - 1.23.1
  • Are you using Docker or Kubernetes or building Temporal from source? - On the metal using Temporal\Testing\Environment

Additional context

Discussed on slack last Friday with wolfy-j

@suityou01 suityou01 added the Bug Something isn't working label May 7, 2024
@roxblnfk
Copy link
Collaborator

roxblnfk commented May 7, 2024

Try to limit Client requests by timeouts.

@suityou01
Copy link
Author

This would not give me the error details of the runtime exception but of the timeout thus masking the problem. It would also prevent any unit testing that expected specific exceptions.

@roxblnfk roxblnfk added the Question Further information is requested label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants