Skip to content

Commit

Permalink
fix test_register_with_event_loop__on_disconnect__loop_cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pawl committed May 26, 2023
1 parent d37bda7 commit 2e9f60b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/unit/transport/test_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2e9f60b

Please sign in to comment.