From 7e9a76bc9983276ec25637a556a6c0262fde5f5c Mon Sep 17 00:00:00 2001 From: nggit <12218311+nggit@users.noreply.github.com> Date: Thu, 21 Nov 2024 12:27:19 +0700 Subject: [PATCH] fix tests --- httpout/__main__.py | 2 +- tests/__main__.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/httpout/__main__.py b/httpout/__main__.py index 83605ac..52b2545 100644 --- a/httpout/__main__.py +++ b/httpout/__main__.py @@ -98,6 +98,6 @@ def threads(value, **context): sys.exit(1) if 'server_name' not in options: - options['server_name'] = b'httpout' + options['server_name'] = 'HTTPOut' app.run(**options) diff --git a/tests/__main__.py b/tests/__main__.py index 6ddcdb2..51b9ec8 100644 --- a/tests/__main__.py +++ b/tests/__main__.py @@ -24,13 +24,14 @@ def main(): - mp.set_start_method('spawn') + mp.set_start_method('spawn', force=True) p = mp.Process( target=app.run, kwargs=dict( host=HTTP_HOST, port=HTTP_PORT, - document_root=DOCUMENT_ROOT, app=None, debug=False + document_root=DOCUMENT_ROOT, app=None, debug=False, + server_name='HTTPOut' ) ) p.start()