Edit:: :lib.flush_receive() works :lib.flush_receive() fine! Unfortunately, it looks like the module is out of date, and I cannot find a replacement.
I was looking for a solution to this. assert_push is not practical for me, as there are many messages that are queued and not related to my test. You can use :c.flush() , which dumps all messages. Unfortunately, I donβt yet know how to prevent this from happening, so I can print it on the console.
source share