Commit dc3790cb authored by Roman Chvanikov's avatar Roman Chvanikov

Fix tests

parent e46062e4
......@@ -122,7 +122,7 @@ defmodule PleromaJobQueue.WorkerTest do
test "Scheduled tasks are executed repeatedly" do
get_next_run_date_mock = [
get_next_run_date: fn _cron_expr ->
NaiveDateTime.add(NaiveDateTime.utc_now(), 1, :second)
{:ok, NaiveDateTime.add(NaiveDateTime.utc_now(), 1, :second)}
end
]
......
......@@ -99,7 +99,7 @@ defmodule PleromaJobQueueTest do
get_next_run_date_mock = [
get_next_run_date: fn _cron_expr ->
NaiveDateTime.add(NaiveDateTime.utc_now(), 1, :second)
{:ok, NaiveDateTime.add(NaiveDateTime.utc_now(), 1, :second)}
end
]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment