You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How would I test such a function? connect_and_assert_join/4 works as expected. But I do not know how to implement assert_push/4 and reply/3. They work, but I always trigger the callbacks timeout. I could test the handle_call/3 function directly, but that triggers a process attempted to call itself error.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: