Permalink
Browse files

One more basic.cancel test

  • Loading branch information...
Michael Klishin
Michael Klishin committed Feb 11, 2014
1 parent 1dff7db commit 9575098a008b14c691bfff81fcec010baf2279cd
Showing with 15 additions and 0 deletions.
  1. +15 −0 spec/lower_level_api/integration/basic_cancel_spec.rb
@@ -66,4 +66,19 @@
ch.close
end
end
+
+ context "when the given consumer tag belongs to a different channel" do
+ it "DOES NOT cause a channel error" do
+ ch1 = connection.create_channel
+ ch2 = connection.create_channel
+
+ q = ch1.queue("", :exclusive => true)
+ cons = q.subscribe do |_, _, _|
+ end
+ ch2.basic_cancel(cons.consumer_tag)
+
+ ch1.close
+ ch2.close
+ end
+ end
end

0 comments on commit 9575098

Please sign in to comment.