From 2d0ae1f0231ccb4183e403a710140a2e44984a12 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Tue, 22 Mar 2011 02:21:07 +0000 Subject: 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. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1084053 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/bindings/qmf/tests/test_base.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/bindings/qmf/tests/test_base.rb b/qpid/cpp/bindings/qmf/tests/test_base.rb index 3e4337a9c0..7d4609097c 100644 --- a/qpid/cpp/bindings/qmf/tests/test_base.rb +++ b/qpid/cpp/bindings/qmf/tests/test_base.rb @@ -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::ConsoleHandler 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) -- cgit v1.2.1