We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a2e380 commit a6ac0c6Copy full SHA for a6ac0c6
test/unit/dispatcher_test.rb
@@ -107,6 +107,8 @@ class DispatcherTest < ActiveSupport::TestCase
107
108
assert_equal 0, SolidQueue::ScheduledExecution.count
109
assert_equal 3, SolidQueue::ReadyExecution.count
110
+ ensure
111
+ dispatcher.stop
112
end
113
114
test "sleeps `polling_interval` between polls if there are no un-dispatched jobs" do
@@ -117,6 +119,8 @@ class DispatcherTest < ActiveSupport::TestCase
117
119
118
120
dispatcher.start
121
wait_while_with_timeout(1.second) { !SolidQueue::ScheduledExecution.exists? }
122
123
124
125
126
private
0 commit comments