Skip to content

Commit

Permalink
fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgi committed Sep 24, 2024
1 parent 9c27735 commit 08f868d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/que/locker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ def initialize(
if poll
@queues.map do |queue_name, interval|
Poller.new(
connection: @connection,
queue: queue_name,
poll_interval: interval,
connection: @connection,
queue: queue_name,
poll_interval: interval,
poll_interval_variance: poll_interval_variance,
)
end
Expand Down
2 changes: 2 additions & 0 deletions spec/que/poller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def poll(
connection: override_connection || connection,
queue: queue_name,
poll_interval: 5,
poll_interval_variance: 0,
)

Que::Poller.setup(override_connection || connection)
Expand Down Expand Up @@ -245,6 +246,7 @@ def assert_poll(priorities:, locked:)
connection: connection,
queue: 'default',
poll_interval: 5,
poll_interval_variance: 0,
)
end

Expand Down

0 comments on commit 08f868d

Please sign in to comment.