Skip to content

Commit 53162c4

Browse files
committed
Limit parallel only on granian
Signed-off-by: Anuraag Agrawal <[email protected]>
1 parent 6a68c9a commit 53162c4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

conformance/test/test_server.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def test_server_sync(server: str) -> None:
5252
"**/bidi-stream/full-duplex/**",
5353
]
5454
match server:
55+
case "granian":
56+
# granian seems to have issues with concurrency
57+
opts += ["--parallel", "1"]
5558
case "gunicorn":
5659
# gunicorn doesn't support HTTP/2
5760
opts = ["--skip", "**/HTTPVersion:2/**"]
@@ -85,6 +88,9 @@ def test_server_async(server: str) -> None:
8588
)
8689
opts = []
8790
match server:
91+
case "granian":
92+
# granian seems to have issues with concurrency
93+
opts = ["--parallel", "1"]
8894
case "uvicorn":
8995
# uvicorn doesn't support HTTP/2
9096
opts = ["--skip", "**/HTTPVersion:2/**"]

0 commit comments

Comments
 (0)