forked from lavina/lavina
xmpp: fix incorrect auth test
This commit is contained in:
parent
c1dc2df150
commit
31f9da9b05
|
@ -299,7 +299,7 @@ async fn scenario_wrong_password() -> Result<()> {
|
||||||
assert_matches!(s.next_xml_event().await?, Event::Empty(b) => assert_eq!(b.local_name().into_inner(), b"not-authorized"));
|
assert_matches!(s.next_xml_event().await?, Event::Empty(b) => assert_eq!(b.local_name().into_inner(), b"not-authorized"));
|
||||||
assert_matches!(s.next_xml_event().await?, Event::End(b) => assert_eq!(b.local_name().into_inner(), b"failure"));
|
assert_matches!(s.next_xml_event().await?, Event::End(b) => assert_eq!(b.local_name().into_inner(), b"failure"));
|
||||||
|
|
||||||
stream.shutdown().await?;
|
let _ = stream.shutdown().await;
|
||||||
|
|
||||||
// wrap up
|
// wrap up
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue