Commit de92f3b8 authored by minibikini's avatar minibikini

Merge branch 'fix-tests' into 'master'

Fix tests

See merge request pleroma/pleroma_job_queue!5
parents f9026dba 2a4dc4e7
Pipeline #14787 passed with stage
in 49 seconds
......@@ -16,10 +16,10 @@ defmodule PleromaJobQueue.SchedulerTest do
time2 = :os.system_time(:millisecond) + :timer.seconds(4)
time3 = :os.system_time(:millisecond) + :timer.seconds(14)
PleromaJobQueue.enqueue_at(time1, @queue_name, Scheduler, [:test_job, :foo, :bar], 1)
PleromaJobQueue.enqueue_at(time2, @queue_name, Scheduler, [:test_job, :foo, :bar], 2)
PleromaJobQueue.enqueue_at(time3, @queue_name, Scheduler, [:test_job, :foo, :bar], 3)
PleromaJobQueue.enqueue_at(time3, @queue_name, Scheduler, [:test_job, :bar, :foo], 3)
PleromaJobQueue.enqueue_at(time1, @queue_name, TestWorker, [:test_job, :foo, :bar], 1)
PleromaJobQueue.enqueue_at(time2, @queue_name, TestWorker, [:test_job, :foo, :bar], 2)
PleromaJobQueue.enqueue_at(time3, @queue_name, TestWorker, [:test_job, :foo, :bar], 3)
PleromaJobQueue.enqueue_at(time3, @queue_name, TestWorker, [:test_job, :bar, :foo], 3)
pid = Process.whereis(Scheduler)
Process.send(pid, :poll, [])
......@@ -28,7 +28,7 @@ defmodule PleromaJobQueue.SchedulerTest do
{time1,
%{
args: [:test_job, :foo, :bar],
mod: Scheduler,
mod: TestWorker,
priority: 1,
queue_name: :testing
}}
......@@ -37,7 +37,7 @@ defmodule PleromaJobQueue.SchedulerTest do
{time2,
%{
args: [:test_job, :foo, :bar],
mod: Scheduler,
mod: TestWorker,
priority: 2,
queue_name: :testing
}}
......@@ -46,7 +46,7 @@ defmodule PleromaJobQueue.SchedulerTest do
{time3,
%{
args: [:test_job, :foo, :bar],
mod: Scheduler,
mod: TestWorker,
priority: 3,
queue_name: :testing
}}
......@@ -55,7 +55,7 @@ defmodule PleromaJobQueue.SchedulerTest do
{time3,
%{
args: [:test_job, :bar, :foo],
mod: Scheduler,
mod: TestWorker,
priority: 3,
queue_name: :testing
}}
......
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