Skip to content

Commit 89729a8

Browse files
committed
Tests: Ignore TagLib TestWAV::test_duplicate_tags
1 parent 13bb0ce commit 89729a8

File tree

1 file changed

+4
-26
lines changed

1 file changed

+4
-26
lines changed

lofty/tests/taglib/test_wav.rs

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -230,33 +230,11 @@ fn test_strip_tags() {
230230
}
231231

232232
#[test]
233+
#[ignore]
233234
fn test_duplicate_tags() {
234-
let mut file = temp_file!("tests/taglib/data/duplicate_tags.wav");
235-
236-
let f = WavFile::read_from(&mut file, ParseOptions::new()).unwrap();
237-
assert_eq!(file.seek(SeekFrom::End(0)).unwrap(), 17052);
238-
file.rewind().unwrap();
239-
240-
// duplicate_tags.wav has duplicate ID3v2/INFO tags.
241-
// title() returns "Title2" if can't skip the second tag.
242-
243-
assert!(f.id3v2().is_some());
244-
assert_eq!(f.id3v2().unwrap().title().as_deref(), Some("Title1"));
245-
246-
assert!(f.riff_info().is_some());
247-
assert_eq!(f.riff_info().unwrap().title().as_deref(), Some("Title1"));
248-
249-
f.save_to(&mut file, WriteOptions::default()).unwrap();
250-
assert_eq!(file.seek(SeekFrom::End(0)).unwrap(), 15898);
251-
252-
let mut file_bytes = Vec::new();
253-
file.rewind().unwrap();
254-
file.read_to_end(&mut file_bytes).unwrap();
255-
256-
assert_eq!(
257-
file_bytes.windows(6).position(|window| window == b"Title2"),
258-
None
259-
);
235+
// Marker test, TagLib will ignore any tag except for the first. Lofty will *not* do this.
236+
// Every tag in the stream is read and merged into the previous one. Whichever tag ends up being
237+
// the latest in the stream will have precedence.
260238
}
261239

262240
#[test]

0 commit comments

Comments
 (0)