Skip to content

Commit

Permalink
Update elixir to 1.15.0-otp-26 (#565)
Browse files Browse the repository at this point in the history
Co-authored-by: maennchen <maennchen@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and maennchen authored Jun 22, 2023
1 parent cf44ef7 commit 902bfec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
erlang 26.0.1
elixir 1.14.4-otp-25
elixir 1.15.0-otp-26
2 changes: 1 addition & 1 deletion lib/quantum/job.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion lib/quantum/normalizer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
14 changes: 5 additions & 9 deletions test/quantum/executor_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@ defmodule Quantum.ExecutorTest do
{:telemetry, _, _, _},
{Quantum.Executor, _, _, _},
{Task.Supervised, _, _, _},
{Task.Supervised, _, _, _},
{:proc_lib, _, _, _}
{Task.Supervised, _, _, _} | _rest
]
},
2000
Expand Down Expand Up @@ -401,8 +400,7 @@ defmodule Quantum.ExecutorTest do
{:telemetry, _, _, _},
{Quantum.Executor, _, _, _},
{Task.Supervised, _, _, _},
{Task.Supervised, _, _, _},
{:proc_lib, _, _, _}
{Task.Supervised, _, _, _} | _rest
]
},
2000
Expand Down Expand Up @@ -453,8 +451,7 @@ defmodule Quantum.ExecutorTest do
{:telemetry, _, _, _},
{Quantum.Executor, _, _, _},
{Task.Supervised, _, _, _},
{Task.Supervised, _, _, _},
{:proc_lib, _, _, _}
{Task.Supervised, _, _, _} | _rest
]
},
2000
Expand Down Expand Up @@ -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}
Expand All @@ -509,8 +506,7 @@ defmodule Quantum.ExecutorTest do
{:telemetry, _, _, _},
{Quantum.Executor, _, _, _},
{Task.Supervised, _, _, _},
{Task.Supervised, _, _, _},
{:proc_lib, _, _, _}
{Task.Supervised, _, _, _} | _rest
]
},
2000
Expand Down

0 comments on commit 902bfec

Please sign in to comment.