Another good idea is to make assertions outside of async code.