Author: tross
Date: Tue Mar 22 02:21:07 2011
New Revision: 1084053
URL: http://svn.apache.org/viewvc?rev=1084053&view=rev
Log:
NO-JIRA - Fixed two problems in the qmf-interop tests:
1) Added a 2-second delay on console startup. This closes the window on a
race condition
that occurs when the console and agent start at exactly the same time.
Note that this
race has been designed out of the QMFv2 protocol.
2) Fixed a reference to an incorrect variable name in the assert(cond)
message.
Modified:
qpid/trunk/qpid/cpp/bindings/qmf/tests/test_base.rb
Modified: qpid/trunk/qpid/cpp/bindings/qmf/tests/test_base.rb
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bindings/qmf/tests/test_base.rb?rev=1084053&r1=1084052&r2=1084053&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/bindings/qmf/tests/test_base.rb (original)
+++ qpid/trunk/qpid/cpp/bindings/qmf/tests/test_base.rb Tue Mar 22 02:21:07 2011
@@ -24,6 +24,7 @@ require 'socket'
class ConsoleTestBase < Qmf::ConsoleHandler
def initialize
+ sleep(2)
@settings = Qmf::ConnectionSettings.new
@settings.host = ARGV[0] if ARGV.size > 0
@settings.port = ARGV[1].to_i if ARGV.size > 1
@@ -67,7 +68,7 @@ class ConsoleTestBase < Qmf::ConsoleHand
def assert(condition, in_text=nil)
text = " (#{in_text})" if in_text
- raise "Assertion failed: #{left} != #{right}#{text}" unless condition
+ raise "Assertion failed: #{condition} #{text}" unless condition
end
def fail(text)
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]