diff --git a/tests/edge_cases/auto_flush/async_microphone_mute/main.py b/tests/edge_cases/auto_flush/async_microphone_mute/main.py index cdd86879..09371d68 100644 --- a/tests/edge_cases/auto_flush/async_microphone_mute/main.py +++ b/tests/edge_cases/auto_flush/async_microphone_mute/main.py @@ -27,8 +27,7 @@ async def main(): for signal in (SIGTERM, SIGINT): loop.add_signal_handler( - signal, - lambda: asyncio.create_task( + lambda signal=signal: asyncio.create_task( shutdown(signal, loop, dg_connection, microphone) ), )