Skip to content

Commit

Permalink
test: fix failures on FFmpeg 7.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
talklittle committed Jun 30, 2024
1 parent 4edfd38 commit 39e3bb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions test/ffmpex_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ defmodule FFmpexTest do
|> add_input_file(@fixture)
|> add_output_file(@output_path)

assert {:error, {_, 1}} = execute(command)
assert {:error, {_, exit_status}} = execute(command)
assert exit_status == 1 || exit_status == 8
end

test "can prepare arguments" do
Expand All @@ -88,7 +89,7 @@ defmodule FFmpexTest do
test "can get output from stdout" do
command =
FFmpex.new_command()
|> add_input_file(@fixture)
|> add_input_file(@fixture)
|> to_stdout()
|> add_file_option(option_f("avi"))

Expand Down
3 changes: 2 additions & 1 deletion test/ffprobe_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ defmodule FFprobeTest do
@fixture_non_media_file __ENV__.file

test "correct duration" do
assert 21.0 == FFprobe.duration(@fixture)
duration = FFprobe.duration(@fixture)
assert duration > 20.9 && duration <= 21.0
end

test "handles N/A duration" do
Expand Down

0 comments on commit 39e3bb8

Please sign in to comment.