Skip to content

Commit 39cfadf

Browse files
committed
fix sentry and client tests
1 parent 9ccf6e0 commit 39cfadf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/sentry/client_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ defmodule Sentry.ClientTest do
354354
{:error, %Sentry.ClientError{} = error} =
355355
Client.send_event(event, result: :sync, request_retries: [])
356356

357-
assert error.reason == {:request_failure, :econnrefused}
357+
assert error.reason == {:request_failure, %Mint.TransportError{reason: :econnrefused}}
358358
end
359359

360360
test "logs an error when unable to encode JSON" do

test/sentry_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ defmodule SentryTest do
5353

5454
put_test_config(hackney_opts: [recv_timeout: 50])
5555

56-
assert {:error, %Sentry.ClientError{reason: {:request_failure, :timeout}}} =
56+
assert {:error, %Sentry.ClientError{reason: {:request_failure, %Mint.TransportError{reason: :timeout}}}} =
5757
Sentry.capture_message("error", request_retries: [], result: :sync)
5858

5959
Bypass.pass(bypass)

0 commit comments

Comments
 (0)