jingle: Fix sid test.

This commit is contained in:
Emmanuel Gil Peyrot 2017-06-14 09:19:06 +01:00
parent 48d340120c
commit e7f0c45da5

View file

@ -333,7 +333,7 @@ mod tests {
let elem: Element = "<jingle xmlns='urn:xmpp:jingle:1' action='session-initiate' sid='coucou'/>".parse().unwrap(); let elem: Element = "<jingle xmlns='urn:xmpp:jingle:1' action='session-initiate' sid='coucou'/>".parse().unwrap();
let jingle = Jingle::try_from(elem).unwrap(); let jingle = Jingle::try_from(elem).unwrap();
assert_eq!(jingle.action, Action::SessionInitiate); assert_eq!(jingle.action, Action::SessionInitiate);
assert_eq!(jingle.sid, "coucou"); assert_eq!(jingle.sid, Sid(String::from("coucou")));
} }
#[test] #[test]