Skip to content

Commit

Permalink
Removes redundant job specifications test file
Browse files Browse the repository at this point in the history
Deletes obsolete test file for job structures as it's no
longer required. Aligns with updated testing strategy and
codebase simplification effort.
  • Loading branch information
eliasjpr committed Nov 27, 2024
1 parent 2cfc3e7 commit bbb83f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions spec/worker_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module JoobQ
job = ExampleJob.new(1)
queue = Queue(ExampleJob | FailJob).new("example", 1)
done = Channel(Nil).new
worker = Worker(ExampleJob | FailJob).new(1, done, queue, queue.metrics)
worker = Worker(ExampleJob | FailJob).new(1, done, queue)

before_each do
JoobQ.reset
Expand All @@ -20,8 +20,8 @@ module JoobQ
end

it "stops and syncs multiple workers" do
w1 = Worker(ExampleJob | FailJob).new(1, done, queue, queue.metrics)
w2 = Worker(ExampleJob | FailJob).new(2, done, queue, queue.metrics)
w1 = Worker(ExampleJob | FailJob).new(1, done, queue)
w2 = Worker(ExampleJob | FailJob).new(2, done, queue)

w1.run
w2.run
Expand Down

0 comments on commit bbb83f7

Please sign in to comment.