Open namxam opened 1 year ago
Could you share a snippet of how you are testing this? I think the problem might be that the GenServer call that hits this handle_call
branch will block the caller until the reply is sent. So you may need the call to reply/3
to happen in a separate process.
I know it is not really an issue, but right now I am a bit lost and could need some help :)
I have a synchronous
handle_call/3
callback like this:How would I test such a function?
connect_and_assert_join/4
works as expected. But I do not know how to implementassert_push/4
andreply/3
. They work, but I always trigger the callbacks timeout. I could test thehandle_call/3
function directly, but that triggers aprocess attempted to call itself
error.