1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Busy worker test is unstable when parallel

This commit is contained in:
Nate Berkopec 2020-12-16 12:40:05 -07:00
parent d535cc50a3
commit 4caf07a25f
No known key found for this signature in database
GPG key ID: BDD7A4B8E43906A6

View file

@ -2,9 +2,8 @@ require_relative "helper"
require "puma/events"
class TestBusyWorker < Minitest::Test
parallelize_me!
def setup
skip_unless :mri # This feature only makes sense on MRI
@ios = []
@server = nil
end
@ -63,8 +62,6 @@ class TestBusyWorker < Minitest::Test
# Multiple concurrent requests are not processed
# sequentially as a small delay is introduced
def test_multiple_requests_waiting_on_less_busy_worker
skip_unless :mri
with_server(wait_for_less_busy_worker: 1.0) do |_|
sleep(0.1)
@ -85,8 +82,6 @@ class TestBusyWorker < Minitest::Test
# Multiple concurrent requests are processed
# in parallel as a delay is disabled
def test_multiple_requests_processing_in_parallel
skip_unless :mri
with_server(wait_for_less_busy_worker: 0.0) do |_|
sleep(0.1)