/ justapi / tests / test_deadlock.py
swadhinbiswas test: add end-to-end integration test suite with gRPC and proto stubs · 7/9/2026
43e015f
10 lines · 226 Bytes
1
2
3
4
5
6
7
8
9
10
from justapi import JustAPIApp
import asyncio
app = JustAPIApp()
async def hello(req):
    await asyncio.sleep(0.01)
    return {"message": "hello"}
app.get("/", hello)
if __name__ == "__main__":
    app.run("127.0.0.1:8080")