Skip to content

Commit

Permalink
Fix the build (#330)
Browse files Browse the repository at this point in the history
Broken by cbb669b
  • Loading branch information
tgxworld authored Dec 5, 2024
1 parent cbb669b commit 4e21b4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/middleware_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def test_patch_called_with_prepend_instrument
Object.stub_const(:Dalli, Module) do
::Dalli.stub_const(:Client) do
mock = Minitest::Mock.new
mock.expect :call, nil, [Dalli::Client, Array, :memcache, { instrument: :prepend }]
mock.expect :call, nil, [Dalli::Client, Array, :memcache], instrument: :prepend
::PrometheusExporter::Instrumentation::MethodProfiler.stub(:patch, mock) do
configure_middleware(instrument: :prepend)
end
Expand Down Expand Up @@ -219,7 +219,7 @@ def test_patch_called_with_alias_method_instrument
Object.stub_const(:Dalli, Module) do
::Dalli.stub_const(:Client) do
mock = Minitest::Mock.new
mock.expect :call, nil, [Dalli::Client, Array, :memcache, { instrument: :alias_method }]
mock.expect :call, nil, [Dalli::Client, Array, :memcache], instrument: :alias_method
::PrometheusExporter::Instrumentation::MethodProfiler.stub(:patch, mock) do
configure_middleware(instrument: :alias_method)
end
Expand Down

0 comments on commit 4e21b4c

Please sign in to comment.