mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 06:56:29 +03:00
test_utils: add EventTracker.conusme_events()
This commit is contained in:
@@ -856,6 +856,11 @@ impl EventTracker {
|
||||
})
|
||||
.await
|
||||
}
|
||||
|
||||
/// Consumes all pending events.
|
||||
pub async fn consume_events(&self) {
|
||||
while self.try_recv().is_ok() {}
|
||||
}
|
||||
}
|
||||
|
||||
/// Gets a specific message from a chat and asserts that the chat has a specific length.
|
||||
|
||||
Reference in New Issue
Block a user