I am doing a channel test that is receiving lots of messages. I may receive a message during setup, adjust some state and then I want to assert
( or refute
) another copy of that message was sent. I think I could do this by clearing the mailbox before causing the event which would trigger the second message. How do I clear the channelcase
mailbox?
EDIT,
I have accomplished my needs by assert_push
all of the old messages, which clears them off of the mailbox. This works well enough but would be very inconvenient if there were more than a few messages