xmpp::Agent::wait_for_events cannot error
This commit is contained in:
parent
2fc8e1c1dd
commit
23e943825f
6 changed files with 18 additions and 22 deletions
|
|
@ -63,7 +63,8 @@ mod tests {
|
|||
|
||||
let mut agent = client_builder.build_impl(client);
|
||||
|
||||
while let Some(events) = agent.wait_for_events().await {
|
||||
loop {
|
||||
let events = agent.wait_for_events().await;
|
||||
assert!(match events[0] {
|
||||
Event::Disconnected(_) => true,
|
||||
_ => false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue