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

Loading…
Cancel
Save