Skip to content

Commit

Permalink
Fix test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kokorin committed Aug 26, 2024
1 parent c2ce25c commit 5ac7619
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
os:
- ubuntu-latest
- macos-latest
- windows-latest
fail-fast: false

steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,11 +561,15 @@ public void testExceptionIsThrownIfFfmpegExitsWithError() {
// FFmpeg 6+
assertEquals(3, e.getProcessErrorLogMessages().size());
assertEquals("[error] Error opening input file non_existent.mp4.", e.getProcessErrorLogMessages().get(1).message);
} else if ("Process execution has ended with non-zero status: -2. Check logs for detailed error message.".equals(e.getMessage())) {
// FFmpeg 7
assertEquals(3, e.getProcessErrorLogMessages().size());
assertEquals("[error] Error opening input file non_existent.mp4.", e.getProcessErrorLogMessages().get(1).message);
} else if ("Process execution has ended with non-zero status: 1. Check logs for detailed error message.".equals(e.getMessage())) {
assertEquals(1, e.getProcessErrorLogMessages().size());
assertEquals("[error] non_existent.mp4: No such file or directory", e.getProcessErrorLogMessages().get(0).message);
} else {
fail("Unknown FFmpeg output format (update test code!)");
fail("Unknown FFmpeg output format (update test code!): " + e.getMessage());
}
return;
}
Expand Down

0 comments on commit 5ac7619

Please sign in to comment.