From 2e9f60b51c95fcf15c0c05da97efb7a482d62e58 Mon Sep 17 00:00:00 2001 From: Paul Brown Date: Fri, 26 May 2023 11:53:55 -0500 Subject: [PATCH] fix test_register_with_event_loop__on_disconnect__loop_cleanup --- t/unit/transport/test_redis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/unit/transport/test_redis.py b/t/unit/transport/test_redis.py index cc71e17d8..4da8a8259 100644 --- a/t/unit/transport/test_redis.py +++ b/t/unit/transport/test_redis.py @@ -940,7 +940,7 @@ def test_register_with_event_loop__on_disconnect__loop_cleanup(self, fds): loop.on_tick = set() redis.Transport.register_with_event_loop(transport, conn, loop) assert len(loop.on_tick) == 1 - transport.cycle._on_connection_disconnect(self.connection) + transport.cycle._on_connection_disconnect(conn) if fds: assert len(loop.on_tick) == 0 else: