Skip to content

Commit

Permalink
use env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ankithads committed Aug 8, 2024
1 parent e8324d1 commit 78f109b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/que/worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
FakeJob.enqueue(1)

expect(Que).
to receive(:execute).with(:lock_job, ["default", 0]).
to receive(:execute).with(:lock_job, include("default", 0)).
and_raise(ActiveRecord::ConnectionTimeoutError)
expect(work).to eq(:postgres_error)
end
Expand All @@ -232,7 +232,7 @@
FakeJob.enqueue(1)

expect(Que).
to receive(:execute).with(:lock_job, ["default", 0]).
to receive(:execute).with(:lock_job, include("default", 0)).
and_raise(ActiveRecord::ConnectionNotEstablished)
expect(work).to eq(:postgres_error)
end
Expand Down

0 comments on commit 78f109b

Please sign in to comment.