(target_node, *args, **kwargs)
| 4137 | with patch("redis.cluster.get_connection") as get_connection: |
| 4138 | |
| 4139 | def raise_error(target_node, *args, **kwargs): |
| 4140 | if get_connection.call_count == 2: |
| 4141 | raise ConnectionError("mocked error") |
| 4142 | else: |
| 4143 | return orig_func(target_node, *args, **kwargs) |
| 4144 | |
| 4145 | get_connection.side_effect = raise_error |
| 4146 |
nothing calls this directly
no test coverage detected