Inline comments would be helpful here...
```
# patch connection to raise an error
# try to start the queue consumer
# wait for the queue consumer to begin starting and then immediately stop it
```
I'm guessing here because without docs it's not clear!