[Bug] Unit test hangs with unit under test has runtime or compile time exception
suityou01 opened this issue · 2 comments
suityou01 commented
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
roxblnfk commented
Try to limit Client requests by timeouts.
suityou01 commented
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.