Skip to content

Commit

Permalink
Fix various deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jerith committed Jul 30, 2024
1 parent f3ef552 commit 81d62f7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ config :turn_junebug_expressway,
rapidpro_client: TurnJunebugExpressway.Backends.ClientMock

# Print only warnings and errors during test
config :logger, level: :warn
config :logger, level: :warning

config :tesla, adapter: Tesla.Mock

Expand Down
10 changes: 4 additions & 6 deletions lib/turn_junebug_expressway/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ defmodule TurnJunebugExpressway.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec

# Metrics
TurnJunebugExpresswayWeb.PhoenixInstrumenter.setup()
TurnJunebugExpresswayWeb.PipelineInstrumenter.setup()
Expand All @@ -14,11 +12,11 @@ defmodule TurnJunebugExpressway.Application do
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint when the application starts
supervisor(TurnJunebugExpresswayWeb.Endpoint, []),
TurnJunebugExpresswayWeb.Endpoint,
# Start your own worker by calling: TurnJunebugExpressway.Worker.start_link(arg1, arg2, arg3)
# worker(TurnJunebugExpressway.Worker, [arg1, arg2, arg3]),
worker(TurnJunebugExpressway.MessageEngine, []),
worker(TurnJunebugExpressway.HttpPushEngine, []),
# {TurnJunebugExpressway.Worker, [arg1, arg2, arg3]},
{TurnJunebugExpressway.MessageEngine, name: TurnJunebugExpressway.MessageEngine},
{TurnJunebugExpressway.HttpPushEngine, name: TurnJunebugExpressway.HttpPushEngine},
{Task.Supervisor, name: Task.ExpressSupervisor, restart: :transient}
]

Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ defmodule TurnJunebugExpressway.Mixfile do
[
app: :turn_junebug_expressway,
version: "0.0.18",
elixir: "~> 1.9",
elixir: "~> 1.17",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
Expand Down
2 changes: 1 addition & 1 deletion test/support/conn_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ defmodule TurnJunebugExpresswayWeb.ConnCase do
end
end

setup tags do
setup _tags do
{:ok, conn: Phoenix.ConnTest.build_conn()}
end
end
2 changes: 0 additions & 2 deletions test/support/data_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ defmodule TurnJunebugExpressway.DataCase do

use ExUnit.CaseTemplate

alias Ecto.Adapters.SQL.Sandbox

using do
quote do
import Ecto
Expand Down

0 comments on commit 81d62f7

Please sign in to comment.