Rename "compat" into "disable-validation", to insist on it breaking some guarantees.
This commit is contained in:
parent
8b15728bb2
commit
c2b7e19378
18 changed files with 39 additions and 39 deletions
|
|
@ -168,7 +168,7 @@ mod tests {
|
|||
assert_eq!(unblock.items, two_items);
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "compat"))]
|
||||
#[cfg(not(feature = "disable-validation"))]
|
||||
#[test]
|
||||
fn test_invalid() {
|
||||
let elem: Element = "<blocklist xmlns='urn:xmpp:blocking' coucou=''/>"
|
||||
|
|
@ -211,7 +211,7 @@ mod tests {
|
|||
assert_eq!(message, "Unknown attribute in unblock element.");
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "compat"))]
|
||||
#[cfg(not(feature = "disable-validation"))]
|
||||
#[test]
|
||||
fn test_non_empty_blocklist_request() {
|
||||
let elem: Element = "<blocklist xmlns='urn:xmpp:blocking'><item jid='coucou@coucou'/><item jid='domain'/></blocklist>".parse().unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue