rust: fix assertions_on_constants for assert!(true)

Which will be optimized away by the compiler
pull/10167/head
Philippe Antoine 2 years ago committed by Victor Julien
parent b239e88c93
commit c49463c86f

@ -225,14 +225,8 @@ mod test {
tx_data: AppLayerTxData::new(),
};
match parse_tftp_request(&READ_REQUEST[..]) {
Some(txp) => {
assert_eq!(tx, txp);
}
None => {
assert!(true);
}
}
let txp = parse_tftp_request(&READ_REQUEST[..]).unwrap();
assert_eq!(tx, txp);
}
#[test]
@ -245,14 +239,8 @@ mod test {
tx_data: AppLayerTxData::new(),
};
match parse_tftp_request(&WRITE_REQUEST[..]) {
Some(txp) => {
assert_eq!(tx, txp);
}
None => {
assert!(true, "fadfasd");
}
}
let txp = parse_tftp_request(&WRITE_REQUEST[..]).unwrap();
assert_eq!(tx, txp);
}
// Invalid request: filename not terminated

Loading…
Cancel
Save