test: Migrate load test framework to anyio as well

This commit is contained in:
Chris Coutinho
2025-10-18 22:02:25 +02:00
parent 1459fe9bc8
commit 240ceb3808
4 changed files with 8 additions and 27 deletions
+2 -1
View File
@@ -23,6 +23,7 @@ from http.server import BaseHTTPRequestHandler, HTTPServer
from typing import Any
from urllib.parse import parse_qs, urlparse
import anyio
import click
import httpx
from playwright.async_api import async_playwright
@@ -729,7 +730,7 @@ def main(
print(f"Results exported to: {output}")
try:
asyncio.run(run())
anyio.run(run)
except KeyboardInterrupt:
print("\nBenchmark interrupted by user")
sys.exit(130)