Skip to content

Commit 2d8eb8f

Browse files
committed
change notification_trigger occurrences to count
1 parent bd9f657 commit 2d8eb8f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/unit/error_storage_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ defmodule ErrorStorageTest do
211211
}
212212
end
213213

214-
test "does not increase the counter when notification_trigger is :always" do
214+
test "does not increase the counter when count is :always" do
215215
ErrorStorage.accumulate(@error_info)
216216

217217
ErrorStorage.reset_accumulated_errors(:always, @error_info)

test/unit/notifier_test.exs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ defmodule NotifierTest do
118118
defmodule PlugErrorWithExponentialTriggerNotifier do
119119
use BoomNotifier,
120120
notifier: FakeNotifier,
121-
notification_trigger: :exponential,
121+
count: :exponential,
122122
options: [
123123
subject: "BOOM error caught",
124124
sender_pid_name: TestMessageProxy
@@ -132,7 +132,7 @@ defmodule NotifierTest do
132132
defmodule PlugErrorWithExponentialTriggerWithLimitNotifier do
133133
use BoomNotifier,
134134
notifier: FakeNotifier,
135-
notification_trigger: [exponential: [limit: 3]],
135+
count: [exponential: [limit: 3]],
136136
options: [
137137
subject: "BOOM error caught",
138138
sender_pid_name: TestMessageProxy
@@ -229,7 +229,7 @@ defmodule NotifierTest do
229229
assert_receive(%{exception: %{subject: "BOOM error caught: thrown error"}}, @receive_timeout)
230230
end
231231

232-
test "reports exception in groups when :notification_trigger setting is :exponential" do
232+
test "reports exception in groups when :count setting is :exponential" do
233233
conn = conn(:get, "/")
234234

235235
catch_error(PlugErrorWithExponentialTriggerNotifier.call(conn, []))
@@ -243,7 +243,7 @@ defmodule NotifierTest do
243243
assert exceptions == 0
244244
end
245245

246-
test "reports exception in groups when :notification_trigger setting is :exponential with limit" do
246+
test "reports exception in groups when :count setting is :exponential with limit" do
247247
conn = conn(:get, "/")
248248

249249
catch_error(PlugErrorWithExponentialTriggerWithLimitNotifier.call(conn, []))
@@ -267,7 +267,7 @@ defmodule NotifierTest do
267267
assert exceptions == 0
268268
end
269269

270-
test "reports every exception when :notification_trigger setting is not set" do
270+
test "reports every exception when :count setting is not set" do
271271
conn = conn(:get, "/")
272272

273273
catch_error(PlugErrorWithSingleNotifier.call(conn, []))

0 commit comments

Comments
 (0)