Skip to content

Commit

Permalink
test(vorbis_rs/decoder): fix test failure on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTMjugador committed Feb 8, 2023
1 parent 4620608 commit 013e546
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/vorbis_rs/src/decoder/decoder_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ mod test {
matches!(
result,
Err(VorbisError::LibraryError(VorbisLibraryError {
kind: VorbisLibraryErrorKind::Io,
// libvorbis may return a slightly different error kind depending on the
// platform: Unix-like systems yield an I/O error, while Windows yields
// OV_ENOTVORBIS. Both error kinds make sense, and we're not trying to
// fix upstream code here, so accept both
kind: VorbisLibraryErrorKind::Io | VorbisLibraryErrorKind::NotVorbis,
..
}))
),
Expand Down

0 comments on commit 013e546

Please sign in to comment.