From 902bfecb3de911dba0aa828e2adb545f2e15456f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 22 Jun 2023 14:21:38 +0200 Subject: [PATCH] Update elixir to 1.15.0-otp-26 (#565) Co-authored-by: maennchen --- .tool-versions | 2 +- lib/quantum/job.ex | 2 +- lib/quantum/normalizer.ex | 2 +- test/quantum/executor_test.exs | 14 +++++--------- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.tool-versions b/.tool-versions index b96b6f1..5534480 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ erlang 26.0.1 -elixir 1.14.4-otp-25 +elixir 1.15.0-otp-26 diff --git a/lib/quantum/job.ex b/lib/quantum/job.ex index c2d95f2..a2870f3 100644 --- a/lib/quantum/job.ex +++ b/lib/quantum/job.ex @@ -27,7 +27,7 @@ defmodule Quantum.Job do @type name :: atom | reference() @type state :: :active | :inactive - @type task :: {atom, atom, [any]} | (() -> any) + @type task :: {atom, atom, [any]} | (-> any) @type timezone :: :utc | String.t() @type schedule :: Crontab.CronExpression.t() diff --git a/lib/quantum/normalizer.ex b/lib/quantum/normalizer.ex index 4afc18e..482519e 100644 --- a/lib/quantum/normalizer.ex +++ b/lib/quantum/normalizer.ex @@ -16,7 +16,7 @@ defmodule Quantum.Normalizer do @type config_schedule :: CronExpression.t() | String.t() | {:cron, String.t()} | {:extended, String.t()} - @type config_task :: {module, fun, [any]} | (() -> any) + @type config_task :: {module, fun, [any]} | (-> any) @type config_name :: String.t() | atom # Normalize Config Input into `Quantum.Job`. diff --git a/test/quantum/executor_test.exs b/test/quantum/executor_test.exs index 4f7a5a6..4616aff 100644 --- a/test/quantum/executor_test.exs +++ b/test/quantum/executor_test.exs @@ -348,8 +348,7 @@ defmodule Quantum.ExecutorTest do {:telemetry, _, _, _}, {Quantum.Executor, _, _, _}, {Task.Supervised, _, _, _}, - {Task.Supervised, _, _, _}, - {:proc_lib, _, _, _} + {Task.Supervised, _, _, _} | _rest ] }, 2000 @@ -401,8 +400,7 @@ defmodule Quantum.ExecutorTest do {:telemetry, _, _, _}, {Quantum.Executor, _, _, _}, {Task.Supervised, _, _, _}, - {Task.Supervised, _, _, _}, - {:proc_lib, _, _, _} + {Task.Supervised, _, _, _} | _rest ] }, 2000 @@ -453,8 +451,7 @@ defmodule Quantum.ExecutorTest do {:telemetry, _, _, _}, {Quantum.Executor, _, _, _}, {Task.Supervised, _, _, _}, - {Task.Supervised, _, _, _}, - {:proc_lib, _, _, _} + {Task.Supervised, _, _, _} | _rest ] }, 2000 @@ -493,7 +490,7 @@ defmodule Quantum.ExecutorTest do assert :ok == wait_for_termination(task) end) - '#Ref' ++ rest = :erlang.ref_to_list(ref) + ~c"#Ref" ++ rest = :erlang.ref_to_list(ref) assert logs =~ "[error] ** (throw)" assert logs =~ "#{rest}" assert_receive %{test_id: ^test_id, type: :start} @@ -509,8 +506,7 @@ defmodule Quantum.ExecutorTest do {:telemetry, _, _, _}, {Quantum.Executor, _, _, _}, {Task.Supervised, _, _, _}, - {Task.Supervised, _, _, _}, - {:proc_lib, _, _, _} + {Task.Supervised, _, _, _} | _rest ] }, 2000