908f0b4a3b
The current rabbit tests post a message on one unit and then consumes the first message on another unit. If the two do not match then the test fails. This means that a single pre-existing message can break all these tests as the consumer always gets the wrong message. This change updates the tests to search for the target message rather than assuming that the first message is the target message. Messages that are not the target message are not reposted so any pre-existing messages are consumed and in effect thrown away but given these are all test messages in a test queue and the tests do not run in parallel this should be fine.