Skip to content

Commit

Permalink
Fix name conflict for finch test case (#202)
Browse files Browse the repository at this point in the history
Co-authored-by: parroty <[email protected]>
  • Loading branch information
parroty and parroty authored May 12, 2023
1 parent 1cf803a commit 59b06de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/recorder_finch_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ defmodule ExVCR.RecorderFinchTest do
end

test "forcefully getting response from server with error" do
use_cassette "server_error" do
use_cassette "server_error1" do
{:error, reason} = Finch.build(:get, "http://invalid_url") |> Finch.request(ExVCRFinch)
assert reason == %Mint.TransportError{reason: :nxdomain}
end
Expand All @@ -56,7 +56,7 @@ defmodule ExVCR.RecorderFinchTest do
end

test "forcefully getting response from server with error using request!" do
use_cassette "server_error" do
use_cassette "server_error2" do
assert_raise(Mint.TransportError, fn ->
Finch.build(:get, "http://invalid_url") |> Finch.request!(ExVCRFinch)
end)
Expand Down

0 comments on commit 59b06de

Please sign in to comment.