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,15 +225,9 @@ mod test {
tx_data: AppLayerTxData::new(),
};
match parse_tftp_request(&READ_REQUEST[..]) {
Some(txp) => {
let txp = parse_tftp_request(&READ_REQUEST[..]).unwrap();
assert_eq!(tx, txp);
}
None => {
assert!(true);
}
}
}
#[test]
pub fn test_parse_tftp_write_request_1() {
@ -245,15 +239,9 @@ mod test {
tx_data: AppLayerTxData::new(),
};
match parse_tftp_request(&WRITE_REQUEST[..]) {
Some(txp) => {
let txp = parse_tftp_request(&WRITE_REQUEST[..]).unwrap();
assert_eq!(tx, txp);
}
None => {
assert!(true, "fadfasd");
}
}
}
// Invalid request: filename not terminated
#[test]

Loading…
Cancel
Save