quick fix for test_gunicorn_worker test
This commit is contained in:
parent
47e761bbe2
commit
ce2df8030c
|
@ -11,7 +11,7 @@ import pytest
|
||||||
def gunicorn_worker():
|
def gunicorn_worker():
|
||||||
command = 'gunicorn --bind 127.0.0.1:1337 --worker-class sanic.worker.GunicornWorker examples.simple_server:app'
|
command = 'gunicorn --bind 127.0.0.1:1337 --worker-class sanic.worker.GunicornWorker examples.simple_server:app'
|
||||||
worker = subprocess.Popen(shlex.split(command))
|
worker = subprocess.Popen(shlex.split(command))
|
||||||
time.sleep(1)
|
time.sleep(3)
|
||||||
yield
|
yield
|
||||||
worker.kill()
|
worker.kill()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user