Skip to content

Commit

Permalink
Resolve Elixir 1.17 warnings in test files
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Sep 26, 2024
1 parent 0c65550 commit b652913
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/graceful_startup/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defmodule MyApp.GracefulStartupClient do
{:ok, socket}
else
:error ->
Logger.warn("""
Logger.warning("""
Could not start #{inspect(__MODULE__)} because it is not configured
""")

Expand Down
2 changes: 1 addition & 1 deletion test/slipstream/examples/graceful_startup_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule Slipstream.GracefulStartupTest do

test "the client does not start up" do
log =
capture_log([level: :warn], fn ->
capture_log([level: :warning], fn ->
assert start_supervised(@client) == {:ok, :undefined}
end)

Expand Down
2 changes: 1 addition & 1 deletion test/support/pid_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ defmodule Slipstream.PidHelpers do

# N.B. this is a re-implementation of Iex.Helpers.pid/1
# I thought this was a Kernel function :P
def pid(str), do: :erlang.list_to_pid('<#{str}>')
def pid(str), do: :erlang.list_to_pid(~c"<#{str}>")
end

0 comments on commit b652913

Please sign in to comment.