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

Fix getting worker pids in test

This commit is contained in:
Nate Berkopec 2020-11-30 10:00:41 -07:00
parent ba2ffbc9a8
commit 267ff48f62
No known key found for this signature in database
GPG key ID: BDD7A4B8E43906A6

View file

@ -160,7 +160,7 @@ class TestIntegration < Minitest::Test
# gets worker pids from @server output
def get_worker_pids(phase = 0, size = workers)
pids = []
re = /pid: (\d+)\) booted, phase: #{phase}/
re = /PID: (\d+)\) booted, phase: #{phase}/
while pids.size < size
if pid = @server.gets[re, 1]
pids << pid