Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nggit committed Nov 21, 2024
1 parent 80fd334 commit 7e9a76b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion httpout/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 3 additions & 2 deletions tests/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7e9a76b

Please sign in to comment.