@@ -758,6 +758,8 @@ def test_handle_reconnect(self, random, wait_for):
758758 side_effect = [ValueError , exceptions .ConnectionError , None ]
759759 )
760760 _run (c ._handle_reconnect ())
761+ print (wait_for .mock .call_count ) # logging to debug #572
762+ print (wait_for .mock .call_args_list )
761763 assert wait_for .mock .call_count == 3
762764 assert [x [0 ][1 ] for x in asyncio .wait_for .mock .call_args_list ] == [
763765 1.5 ,
@@ -779,6 +781,8 @@ def test_handle_reconnect_max_delay(self, random, wait_for):
779781 side_effect = [ValueError , exceptions .ConnectionError , None ]
780782 )
781783 _run (c ._handle_reconnect ())
784+ print (wait_for .mock .call_count ) # logging to debug #572
785+ print (wait_for .mock .call_args_list )
782786 assert wait_for .mock .call_count == 3
783787 assert [x [0 ][1 ] for x in asyncio .wait_for .mock .call_args_list ] == [
784788 1.5 ,
@@ -822,6 +826,8 @@ def test_handle_reconnect_aborted(self, random, wait_for):
822826 side_effect = [ValueError , exceptions .ConnectionError , None ]
823827 )
824828 _run (c ._handle_reconnect ())
829+ print (wait_for .mock .call_count ) # logging to debug #572
830+ print (wait_for .mock .call_args_list )
825831 assert wait_for .mock .call_count == 2
826832 assert [x [0 ][1 ] for x in asyncio .wait_for .mock .call_args_list ] == [
827833 1.5 ,
0 commit comments