mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
test_utils: add EventTracker.conusme_events()
This commit is contained in:
@@ -856,6 +856,11 @@ impl EventTracker {
|
|||||||
})
|
})
|
||||||
.await
|
.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.
|
/// Gets a specific message from a chat and asserts that the chat has a specific length.
|
||||||
|
|||||||
Reference in New Issue
Block a user