Skip to content

Commit db8305f

Browse files
committed
chore: delete shortid buffer too short test
1 parent cf4d8e8 commit db8305f

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

tbf-parser/tests/parse.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -158,20 +158,6 @@ fn shortid_invalid() {
158158
assert!(debug_string.contains("Checksum verification failed"));
159159
}
160160

161-
#[test]
162-
fn shortid_buffer_too_short() {
163-
let too_short_buffer: Vec<u8> = vec![0x02, 0x00, 0x01, 0x00];
164-
165-
let result = parse_tbf_header(&too_short_buffer, 2);
166-
assert!(result.is_err());
167-
168-
let error = result.unwrap_err();
169-
let debug_string = format!("{:?}", error);
170-
171-
// This now correctly asserts against the bug in the parser.
172-
assert!(debug_string.contains("Internal kernel error. This is a bug."));
173-
}
174-
175161
#[test]
176162
fn shortid_nonexistent() {
177163
// We can reuse the `simple.dat` artifact, as it should not have a ShortID TLV.

0 commit comments

Comments
 (0)