You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mc...@apache.org on 2013/11/12 16:15:27 UTC
svn commit: r1541098 -
/qpid/proton/trunk/proton-c/bindings/ruby/spec/qpid/proton/messenger_spec.rb
Author: mcpierce
Date: Tue Nov 12 15:15:27 2013
New Revision: 1541098
URL: http://svn.apache.org/r1541098
Log:
PROTON-450: Use random ports for Ruby Rspec tests.
The ports used are randomly chosen above 5700, to avoid interference
from a running Qpid broker.
Modified:
qpid/proton/trunk/proton-c/bindings/ruby/spec/qpid/proton/messenger_spec.rb
Modified: qpid/proton/trunk/proton-c/bindings/ruby/spec/qpid/proton/messenger_spec.rb
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/ruby/spec/qpid/proton/messenger_spec.rb?rev=1541098&r1=1541097&r2=1541098&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/ruby/spec/qpid/proton/messenger_spec.rb (original)
+++ qpid/proton/trunk/proton-c/bindings/ruby/spec/qpid/proton/messenger_spec.rb Tue Nov 12 15:15:27 2013
@@ -227,7 +227,7 @@ module Qpid
end
it "can subscribe to an address" do
- @messenger.subscribe("amqp://~0.0.0.0").should_not be_nil
+ @messenger.subscribe("amqp://~0.0.0.0:#{5700+rand(1024)}").should_not be_nil
end
it "returns a tracker's status"
@@ -236,8 +236,9 @@ module Qpid
before (:each) do
# create a receiver
+ @port = 5700 + rand(1024)
@receiver = Qpid::Proton::Messenger.new("receiver")
- @receiver.subscribe("amqp://~0.0.0.0")
+ @receiver.subscribe("amqp://~0.0.0.0:#{@port}")
@messenger.timeout = 0
@receiver.timeout = 0
@receiver.start
@@ -247,7 +248,7 @@ module Qpid
end
@msg = Qpid::Proton::Message.new
- @msg.address = "amqp://0.0.0.0"
+ @msg.address = "amqp://0.0.0.0:#{@port}"
@msg.content = "Test sent #{Time.new}"
end
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org