File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1246,13 +1246,13 @@ async def handler(request: web.Request) -> web.WebSocketResponse:
1246
1246
async def test_normal_closure_while_client_sends_msg (
1247
1247
aiohttp_client : AiohttpClient ,
1248
1248
) -> None :
1249
- """Test abnormal closure when the server closes and the client doesn't respond ."""
1249
+ """Test normal closure when the server closes and the client responds properly ."""
1250
1250
close_code : Optional [WSCloseCode ] = None
1251
1251
got_close_code = asyncio .Event ()
1252
1252
1253
1253
async def handler (request : web .Request ) -> web .WebSocketResponse :
1254
- # Setting a short close timeout
1255
- ws = web .WebSocketResponse (timeout = 0.2 )
1254
+ # Setting a longer close timeout to avoid race conditions
1255
+ ws = web .WebSocketResponse (timeout = 1.0 )
1256
1256
await ws .prepare (request )
1257
1257
await ws .close ()
1258
1258
You can’t perform that action at this time.
0 commit comments