1 parent 14474fe commit 8d867d0Copy full SHA for 8d867d0
1 file changed
tests/integration/test_concurrency_locks.py
@@ -12,7 +12,7 @@
12
13
class DelayedTransport(httpx.AsyncBaseTransport):
14
async def handle_async_request(self, request: httpx.Request) -> httpx.Response:
15
- await asyncio.sleep(0.1)
+ await asyncio.sleep(0.25)
16
return httpx.Response(200, json={"ok": True}, request=request)
17
18
@@ -64,5 +64,4 @@ async def test_independent_workflows_run_concurrently_and_locks_serialize(tmp_pa
64
make_document(True), env={"USER_ID": "u1"}
65
)
66
locked_elapsed = time.perf_counter() - start
67
- assert concurrent_elapsed < 0.18
68
- assert locked_elapsed >= 0.19
+ assert locked_elapsed - concurrent_elapsed >= 0.12
0 commit comments