Skip to content

Commit a55e004

Browse files
committed
Ensure worker stops cleanly in process test
1 parent ef42e6a commit a55e004

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/models/solid_queue/process_test.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ class SolidQueue::ProcessTest < ActiveSupport::TestCase
2222
Socket.stub :gethostname, hostname.force_encoding("ASCII-8BIT") do
2323
worker.start
2424
wait_for_registered_processes(1, timeout: 1.second)
25+
2526
assert_equal hostname, SolidQueue::Process.last.hostname
27+
28+
worker.stop
2629
end
2730
end
2831
end

0 commit comments

Comments
 (0)