Skip to content

Commit

Permalink
One more basic.cancel test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Klishin committed Feb 11, 2014
1 parent 1dff7db commit 9575098
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/lower_level_api/integration/basic_cancel_spec.rb
Expand Up @@ -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.