Skip to content

Commit 87d2e34

Browse files
committed
dbg
1 parent 06f0580 commit 87d2e34

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

jupyter_releaser/util.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -728,11 +728,17 @@ def ensure_mock_github():
728728
except ImportError:
729729
run(f"'{python}' -m pip install fastapi uvicorn")
730730

731-
proc = subprocess.Popen(
732-
[python, "-m", "uvicorn", "jupyter_releaser.mock_github:app", "--port", str(port)], # noqa: S603
733-
stdout=subprocess.DEVNULL,
734-
stderr=subprocess.DEVNULL,
735-
)
731+
cmd = [
732+
python,
733+
"-m",
734+
"uvicorn",
735+
"jupyter_releaser.mock_github:app",
736+
"--port",
737+
str(port),
738+
"--workers",
739+
"1",
740+
]
741+
proc = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) # noqa: S603
736742

737743
try:
738744
ret = proc.wait(1)

0 commit comments

Comments
 (0)