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 @@ -1297,13 +1297,13 @@ async def handler(request: web.Request) -> web.WebSocketResponse:
1297
1297
async def test_normal_closure_while_client_sends_msg (
1298
1298
aiohttp_client : AiohttpClient ,
1299
1299
) -> None :
1300
- """Test abnormal closure when the server closes and the client doesn't respond ."""
1300
+ """Test normal closure when the server closes and the client responds properly ."""
1301
1301
close_code : Optional [WSCloseCode ] = None
1302
1302
got_close_code = asyncio .Event ()
1303
1303
1304
1304
async def handler (request : web .Request ) -> web .WebSocketResponse :
1305
- # Setting a short close timeout
1306
- ws = web .WebSocketResponse (timeout = 0.2 )
1305
+ # Setting a longer close timeout to avoid race conditions
1306
+ ws = web .WebSocketResponse (timeout = 1.0 )
1307
1307
await ws .prepare (request )
1308
1308
await ws .close ()
1309
1309
You can’t perform that action at this time.
0 commit comments