Skip to content

Commit f2663c8

Browse files
committed
Pause for longer in jobs in instrumentation test
Sometimes 10 seconds is too short for Sqlite and the job ends up finishing.
1 parent ae57270 commit f2663c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/instrumentation_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class InstrumentationTest < ActiveSupport::TestCase
1919
end
2020

2121
test "stopping a worker with claimed executions emits release_claimed events" do
22-
StoreResultJob.perform_later(42, pause: SolidQueue.shutdown_timeout + 10.second)
22+
StoreResultJob.perform_later(42, pause: SolidQueue.shutdown_timeout + 100.second)
2323
process = nil
2424

2525
events = subscribed(/release.*_claimed\.solid_queue/) do
@@ -54,7 +54,7 @@ class InstrumentationTest < ActiveSupport::TestCase
5454
end
5555

5656
test "starting and stopping a worker emits register_process and deregister_process events" do
57-
StoreResultJob.perform_later(42, pause: SolidQueue.shutdown_timeout + 10.second)
57+
StoreResultJob.perform_later(42, pause: SolidQueue.shutdown_timeout + 100.second)
5858
process = nil
5959

6060
events = subscribed(/(register|deregister)_process\.solid_queue/) do

0 commit comments

Comments
 (0)