--
You received this message because you are subscribed to the Google Groups "AMQP" group.
To post to this group, send email to ruby...@googlegroups.com.
To unsubscribe from this group, send email to ruby-amqp+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruby-amqp?hl=en.
I have some rspec tests running against a live broker. I monkey
patched this code in:
module ::AMQP
def self.hard_reset!
MQ.reset
stop
EM.stop
Thread.current[:mq], @conn = nil, nil
end
end
And then I call it from an EM timer to end the test:
EM.add_timer(0.1) do
AMQP.hard_reset!
end
Makes the tests that use it relatively slow, but it works.
Dan DeLeo