From 2d76ecb958f327109e9eb3c303bb9ec917773717 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 16 Aug 2024 21:35:18 -0400 Subject: [PATCH] Prevent cancellation of task with timeout in asyncio runner. (#35045) I am yet unclear why on new python/os/websocket we do not get a timeout error, however from what I could tell, wait_for would cancel the websocket.recv and that stops instead of throwing a timeout exception, resulting in a full success result. Making this change seems to make the test TestPurposefulFailureExtraReportingOnToggle pass on my machine (well ... fail as expected instead of passing with a successful stop) Co-authored-by: Andrei Litvin