Remove internally inconsistent test that was left in 1d2ec8c.

This commit is contained in:
whitequark 2018-02-01 01:04:13 +00:00
parent 3bf64a32fb
commit 5fec38bad3
1 changed files with 0 additions and 11 deletions

View File

@ -730,17 +730,6 @@ mod test {
assert_eq!(Repr::parse(&packet, &ChecksumCapabilities::default()), Err(Error::Malformed));
}
#[test]
fn test_parse_total_len_underflow() {
let mut bytes = vec![0; 24];
bytes.copy_from_slice(&REPR_PACKET_BYTES[..]);
let mut packet = Packet::new(&mut bytes);
packet.set_total_len(10);
packet.fill_checksum();
let packet = Packet::new(&*packet.into_inner());
assert_eq!(Repr::parse(&packet, &ChecksumCapabilities::default()), Err(Error::Malformed));
}
#[test]
fn test_parse_total_len_less_than_header_len() {
let mut bytes = vec![0; 40];