Hi friends,
I’m working on a contribution to Finch and am having a hell of a time debugging an unexpected process exit that’s causing a test to fail.
The code being tested is rather unfinished and very much a work-in-progress, but I wanted to have a baseline before I start refactoring and moving things around. When the test reaches the call to cancel the async request, the test fails (not immediately, but after a very small period), with the following message:
Things I’ve tried so far:
- Re-creating the issue without using Finch (I couldn’t)
- Running the code outside of the context of a test (it works as expected)
- Creating the process with a Task supervisor (what’s currently in the code)
- Creating the process with
Task.async
- Creating the process with
spawn
- Various exit trapping
I have a hunch this has something to do with ExUnit’s GenServer, but I’m really struggling to find more information and I’m at a loss for how to debug further.