Skip to content

Instantly share code, notes, and snippets.

View skaes's full-sized avatar

Stefan Kaes skaes

  • XING SE
  • Hamburg, Germany
View GitHub Profile
@skaes
skaes / bunny_test.rb
Created January 4, 2012 06:43 — forked from randomcamel/bunny_test.rb
Script to load a queue and then cause the error 'Error subscribing to queue qtest.broadcast (Bunny::ProtocolError)'
#!/usr/bin/env ruby
require 'rubygems'
require 'bunny'
# Chris Doherty, confused by Bunny::Queue#subscribe semantics.
# run with `ruby bunny_test.rb load` followed by `ruby bunny_test.rb consume`.
class BunnyTest