I'm working on a Perl project written asynchronously using AnyEvent
. During testing, I had a situation where a bug in my code caused blocked code to be called after my test had completed so the test looked like it passed, but the blocked call ended up polluting other tests later on.
What I'd like to have happen is in the teardown for the test, verify that AnyEvent
isn't waiting on any other blocked calls. Is this possible to check AnyEvent
if it has any calls that haven't yet been executed?