APE: Stop skipping the preamble in tests

This commit is contained in:
Serial 2023-05-21 12:33:27 -04:00 committed by Alex
parent 8c854d54a1
commit 6888c17bad

View file

@ -544,9 +544,6 @@ mod tests {
let tag = crate::tag::utils::test_utils::read_path("tests/tags/assets/test.apev2");
let mut reader = Cursor::new(tag);
// Remove the APE preamble
reader.seek(SeekFrom::Current(8)).unwrap();
let (parsed_tag, _) = crate::ape::tag::read::read_ape_tag(&mut reader, false)
.unwrap()
.unwrap();
@ -563,9 +560,6 @@ mod tests {
let tag_bytes = crate::tag::utils::test_utils::read_path("tests/tags/assets/test.apev2");
let mut reader = Cursor::new(tag_bytes);
// Remove the APE preamble
reader.seek(SeekFrom::Current(8)).unwrap();
let (parsed_tag, _) = crate::ape::tag::read::read_ape_tag(&mut reader, false)
.unwrap()
.unwrap();
@ -575,9 +569,6 @@ mod tests {
let mut temp_reader = Cursor::new(writer);
// Remove the APE preamble
temp_reader.seek(SeekFrom::Current(8)).unwrap();
let (temp_parsed_tag, _) = crate::ape::tag::read::read_ape_tag(&mut temp_reader, false)
.unwrap()
.unwrap();
@ -590,9 +581,6 @@ mod tests {
let tag_bytes = crate::tag::utils::test_utils::read_path("tests/tags/assets/test.apev2");
let mut reader = Cursor::new(tag_bytes);
// Remove the APE preamble
reader.seek(SeekFrom::Current(8)).unwrap();
let (ape, _) = crate::ape::tag::read::read_ape_tag(&mut reader, false)
.unwrap()
.unwrap();