pub async fn assert_published_n<T: Clone + Send + Sync + 'static>(
broker: &InMemoryBroker<T>,
topic: &str,
n: usize,
)Expand description
Assert that exactly n messages were published to topic.
ยงPanics
Panics when the count does not match.