Skip to content

Commit

Permalink
Fix package
Browse files Browse the repository at this point in the history
  • Loading branch information
Argonus committed Dec 3, 2024
1 parent cac5d3c commit 76dba55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ defmodule Cluster.Mixfile do
docs: docs(),
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [
summary: [
threshold: 60
]
],
dialyzer: [
flags: ~w(-Wunmatched_returns -Werror_handling -Wrace_conditions -Wno_opaque -Wunderspecs)
],
Expand Down
4 changes: 1 addition & 3 deletions test/support/telemetry.ex
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
defmodule Cluster.Telemetry do
@moduledoc false

use ExUnit.Case

def setup_telemetry(event) do
telemetry_handle_id = "test-telemetry-handler-#{inspect(self())}"

Expand All @@ -16,7 +14,7 @@ defmodule Cluster.Telemetry do
nil
)

:ok = on_exit(fn -> :telemetry.detach(telemetry_handle_id) end)
:ok = ExUnit.Callbacks.on_exit(fn -> :telemetry.detach(telemetry_handle_id) end)
end

defp send_to_pid(event, measurements, metadata, config) do
Expand Down

0 comments on commit 76dba55

Please sign in to comment.