Open dsandstrom opened 8 years ago
Hmmm....perhaps I can have a toggle to simulate certain errors. Something like
session.simulate_connection_closed!
expect { xchg.publish('Routed message', routing_key: '*.test') }.to raise_error(Bunny::ConnectionClosedError)
expect(error_handler).to do_stuff
I'll have to look at this and the relevant Bunny code to see what the actual implementation of that might look like tonight
Can you provide an example on how to raise
Bunny::ConnectionClosedError
andBunny::TCPConnectionFailed
errors. I'm having trouble getting these to fire.Maybe something like: