Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/error_tracker/telemetry_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule ErrorTracker.TelemetryTest do
:ok
end

test "event is emitted for new errors" do
test "events are emitted for new errors" do
# Since the error is new, both the new error and new occurrence events will be emitted
report_error(fn -> raise "This is a test" end)
assert_receive {:telemetry_event, [:error_tracker, :error, :new], _, %{error: %Error{}}}
Expand All @@ -29,7 +29,7 @@ defmodule ErrorTracker.TelemetryTest do
%{occurrence: %Occurrence{}}}
end

test "event is emitted for resolved and unresolved errors" do
test "events are emitted for resolved and unresolved errors" do
%Occurrence{error: error = %Error{}} = report_error(fn -> raise "This is a test" end)

# The resolved event will be emitted
Expand Down
2 changes: 1 addition & 1 deletion test/error_tracker_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule ErrorTrackerTest do
assert error.kind == to_string(ArithmeticError)
assert error.reason == "bad argument in arithmetic expression"

# Elixir 1.17.0 reports this errors differntly than previous versions
# Elixir 1.17.0 reports these errors differently than previous versions
if Version.compare(System.version(), "1.17.0") == :lt do
assert error.source_line =~ @relative_file_path
else
Expand Down