Skip to content

Commit 9e93b4b

Browse files
FelonEkonomclaude
andauthored
Fix failing test blocking v0.20.6 release (#68)
Mockery 2.4+ deprecated `Mockery.Macro.mockable/2` based on `Mix.env/0` and the mix.exs constraint (~> 2.1) resolved to 2.5.0, emitting compile warnings that fail CI's `mix test --warnings-as-errors`. Enable Mockery explicitly via `config :mockery, enable: true` in config/test.exs and switch the converter to `use Mockery.Macro` so the `@compile {:no_warn_undefined, Mockery.Proxy.MacroProxy}` directive is injected, silencing the undefined-proxy warnings. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 357c436 commit 9e93b4b

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

config/config.exs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import Config
2+
3+
if config_env() == :test do
4+
import_config "test.exs"
5+
end

config/test.exs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Config
2+
3+
config :mockery, enable: true

lib/membrane_ffmpeg_swresample_plugin/converter.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule Membrane.FFmpeg.SWResample.Converter do
55
"""
66

77
use Membrane.Filter
8-
import Mockery.Macro
8+
use Mockery.Macro
99

1010
require Membrane.Logger
1111

0 commit comments

Comments
 (0)